OAID / Rimo Workorder update:
- OAIDs are now auto assigned to preorders/wohneinheiten on save - OAIDs can be exported to rimo via Preorder Admin functions - Preorder admin function createWorkorder automatically creates, exports and assigns OAIDs
This commit is contained in:
33
application/RimoWorkorder/RimoWorkorder.php
Normal file
33
application/RimoWorkorder/RimoWorkorder.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
class RimoWorkorder extends mfBaseModel {
|
||||
private $adb_wohneinheit;
|
||||
private $termination;
|
||||
|
||||
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
|
||||
if(!$this->id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if($name == "adb_wohneinheit") {
|
||||
$this->adb_wohneinheit = new ADBWohneinheit($this->adb_wohneinheit_id);
|
||||
return $this->adb_wohneinheit;
|
||||
}
|
||||
|
||||
$classname = ucfirst($name);
|
||||
$idfield = $name."_id";
|
||||
$this->$name = new $classname($this->$idfield);
|
||||
|
||||
if($this->$name->id) {
|
||||
return $this->$name;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->$name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user