Billing / generation of Invoices finished
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
class Invoice extends mfBaseModel {
|
||||
private $positions;
|
||||
private $voicenumbers;
|
||||
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
@@ -17,6 +18,12 @@ class Invoice extends mfBaseModel {
|
||||
return $this->positions;
|
||||
}
|
||||
|
||||
if($name == "voicenumbers") {
|
||||
$voicenumbers = InvoiceVoicenumberModel::search(["invoice_id" => $this->id]);
|
||||
$this->voicenumbers = $voicenumbers;
|
||||
return $this->voicenumbers;
|
||||
}
|
||||
|
||||
if($name == "creator") {
|
||||
$this->creator = mfValuecache::singleton()->get("Worker-id-".$this->create_by);
|
||||
if($this->creator === null) {
|
||||
|
||||
Reference in New Issue
Block a user