Merge branch 'fronkdev' into 'master'

TT_PREORDER_RIMO_STATUS_MATRIX now has netowner specific config

See merge request fronk/thetool!1880
This commit is contained in:
Frank Schubert
2025-11-12 13:30:50 +00:00

View File

@@ -130,9 +130,13 @@ class AddressDB {
}
$netowner = $hausnummer->getNetowner();
if(!$netowner || !$netowner->id) {
$log->debug(__METHOD__.": Unable to determine netowner for Hausnummer ".$hausnummer->id);
return true;
}
$status_matrix = array_reverse(TT_PREORDER_RIMO_STATUS_MATRIX);
$status_matrix = array_reverse(TT_PREORDER_RIMO_STATUS_MATRIX[$netowner->id]);
$log->debug(__METHOD__.": b_ex_state: ".$b_ex_state);
$log->debug(__METHOD__.": b_op_state: ".$b_op_state);
@@ -218,7 +222,6 @@ class AddressDB {
if($hausnummer->status_id != $old_status) {
$hausnummer->save();
}
}
//$wohneinheit = new ADBWohneinheit($wohneinheit->id);
@@ -234,9 +237,18 @@ class AddressDB {
}
if(array_key_exists("hf", $matrix)) {
$hausnummer_flag = $matrix["hf"];
if($hausnummer_flag) {
$log->debug(__METHOD__.": new Hausnummer (".$wohneinheit->id.") statusflag: ".$matrix["hf"]);
$hausnummer->setStatusflag($hausnummer_flag, 1);
}
}
break;
// commented, for 140/141
//break;
}
return true;
}