Added OrderJournal

This commit is contained in:
Frank Schubert
2021-10-12 22:03:31 +02:00
parent a212d4b4bc
commit c464e111e8
5 changed files with 283 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ class Order extends mfBaseModel {
private $billingaddress;
private $products;
private $terminations;
private $journals;
private $files;
private $creator;
private $editor;
@@ -132,6 +133,11 @@ class Order extends mfBaseModel {
return $this->terminations;
}
if($name == "journals") {
$this->journals = OrderJournalModel::search(["order_id" => $this->id]);
return $this->journals;
}
if($name == "files") {
$this->files = OrderFileModel::search(['order_id' => $this->id]);
return $this->files;