Added Emaillog to PreorderBillingInvoice

This commit is contained in:
Frank Schubert
2025-09-17 12:45:42 +02:00
parent 3506bc51fb
commit 5190ce031b
4 changed files with 223 additions and 4 deletions
@@ -10,6 +10,7 @@ class PreorderBillingInvoice extends mfBaseModel {
private $pdf;
private $csv;
private $emailLog;
private $creator;
private $editor;
@@ -278,6 +279,14 @@ RML Infrastruktur GmbH";
return $this->csv;
}
if($name == "emailLog") {
$emaillog = EmailLog::getFirst(["object_type" => "PreorderBillingInvoice", "object_id" => $this->id]);
if($emaillog) {
$this->emailLog = $emaillog;
}
return $this->emailLog;
}
if($name == "creator") {
$creator = mfValuecache::singleton()->get("Worker-id-".$this->create_by);
if($creator) {