WIP Contract Form

This commit is contained in:
Frank Schubert
2022-06-09 17:05:34 +02:00
parent b2e72c35b0
commit 121312cdc3
11 changed files with 382 additions and 115 deletions

View File

@@ -51,11 +51,11 @@ class Contract extends mfBaseModel {
}
if($name == "orderproduct") {
$this->orderproduct = mfValuecache::singleton()->get("mfObjectmodel-OrderProduct-".$this->orderorderproduct_id);
$this->orderproduct = mfValuecache::singleton()->get("mfObjectmodel-OrderProduct-".$this->orderproduct_id);
if($this->orderproduct === null) {
$this->orderproduct = new OrderProduct($this->orderorderproduct_id);
$this->orderproduct = new OrderProduct($this->orderproduct_id);
if($this->orderproduct->id) {
mfValuecache::singleton()->set("mfObjectmodel-OrderProduct-".$this->orderorderproduct_id, $this->orderproduct);
mfValuecache::singleton()->set("mfObjectmodel-OrderProduct-".$this->orderproduct_id, $this->orderproduct);
}
}
return $this->orderproduct;