Showing unit OAID & preorder count in Preorder/Form
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user