Added responsible company name to unfinished terminations in Order/Index

This commit is contained in:
Frank Schubert
2021-12-06 19:42:03 +01:00
parent 5e74ece36d
commit 5153799778
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -170,6 +170,11 @@ class Termination extends mfBaseModel {
return $this->workflowitems;
}
if($name == "lineworker") {
$this->lineworker = new Address($this->getProperty("building")->lineworker_id);
return $this->lineworker;
}
if($name == "files") {
$this->files = TerminationFileModel::search(["termination_id" => $this->id]);
return $this->files;