Showing unit OAID & preorder count in Preorder/Form

This commit is contained in:
Frank Schubert
2024-12-11 13:04:26 +01:00
parent 72367e2a63
commit 2154b326c2
4 changed files with 29 additions and 2 deletions
@@ -496,6 +496,14 @@ class PreorderController extends mfBaseController {
$data['create_by'] = $this->me->id;
$preorder = PreorderModel::create($data);
} else {
// if new wohneinheit -> remove oaid from Preorder
if($r->adb_wohneinheit_id && $preorder->adb_wohneinheit_id != $r->adb_wohneinheit_id) {
$preorder->oaid = null;
}
if(!$r->adb_wohneinheit_id && $preorder->oaid) {
$preorder->oaid = null;
}
$preorder->update($data);
}
@@ -655,6 +663,9 @@ class PreorderController extends mfBaseController {
}
}
} else {
// if $preorder->adb_wohneinheit_id
//if($preorder->_old)
}
/*