ADB Statusflag done & Preorder statusflag import

This commit is contained in:
Frank Schubert
2024-08-20 12:51:54 +02:00
parent 03a53bbbd2
commit fcbbb82abc
10 changed files with 232 additions and 11 deletions

View File

@@ -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