Billing / generation of Invoices finished

This commit is contained in:
Frank Schubert
2024-07-07 12:04:51 +02:00
parent f83ef19e8d
commit 564d5c53b5
18 changed files with 665 additions and 60 deletions

View File

@@ -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) {