Contract WIP

This commit is contained in:
Frank Schubert
2023-02-23 13:06:04 +01:00
parent 0c5f463ec1
commit aa373b5f4e
10 changed files with 624 additions and 154 deletions

View File

@@ -11,6 +11,7 @@ class Contract extends mfBaseModel {
private $contractConfigItems;
private $configgroups;
private $isCancelled;
private $journals;
private $links;
private $linkFrom;
private $linkTo;
@@ -188,6 +189,11 @@ class Contract extends mfBaseModel {
return $this->contractConfigItems;
}
if($name == "journals") {
$this->journals = array_reverse(ContractjournalModel::search(["contract_id" => $this->id]));
return $this->journals;
}
if($name == "links") {
$this->links = ContractLinkModel::includesContractId($this->id, ["type" => $link]);
//var_dump($this->links);exit;