Added Emaillog to PreorderBillingInvoice
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user