Merge branch 'fronkdev' into 'master'
RimoImport: Added option to delete Wohneinheiten not existant in Rimo See merge request fronk/thetool!1350
This commit is contained in:
@@ -43,7 +43,18 @@ class ADBHausnummer extends mfBaseModel {
|
||||
AddressDB::handleRimoStatusUpdate($wohneinheit->id);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function refreshUnitCount() {
|
||||
if(!$this->id) return true;
|
||||
|
||||
$unit = ADBWohneinheitModel::getFirst(["hausnummer_id" => $this->id]);
|
||||
if($unit) {
|
||||
$unit->refreshUnitCount();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public function resetSaveNesting() {
|
||||
|
||||
Reference in New Issue
Block a user