ADB Statusflag done & Preorder statusflag import
This commit is contained in:
@@ -50,6 +50,7 @@ class Preorder extends mfBaseModel {
|
||||
mfValuecache::singleton()->set("preorder-save-nesting-level-" . $this->id, $nesting_level);
|
||||
|
||||
if($nesting_level > 1) {
|
||||
$this->log->debug(__METHOD__.": (Preorder ".$this->id.") Nesting level limit reached ($nesting_level) -> aborting");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -73,7 +74,10 @@ class Preorder extends mfBaseModel {
|
||||
$this->cascadeStatus();
|
||||
// Cascade status changes down all active preorders with the same hausnummer
|
||||
$this->cascadeStatusToPreorders();
|
||||
}
|
||||
|
||||
public function resetSaveNesting() {
|
||||
mfValuecache::singleton()->delete("preorder-save-nesting-level-" . $this->id);
|
||||
}
|
||||
|
||||
public function createHistoryEntry() {
|
||||
@@ -158,7 +162,7 @@ class Preorder extends mfBaseModel {
|
||||
* Cascade status changes down to adb_hausnummer and adb_wohneinheit
|
||||
*/
|
||||
public function cascadeStatus() {
|
||||
|
||||
$this->log->debug(__METHOD__. " entered");
|
||||
/*
|
||||
* defines status alignments of preorder status to hausnummer (h) and wohneinheit (w)
|
||||
* if h or w are greater than defined here, don't change them
|
||||
|
||||
Reference in New Issue
Block a user