Fixed Address::afterSave() setting custnum & fibu account num

This commit is contained in:
Frank Schubert
2025-01-07 15:29:30 +01:00
parent 0a48808cfe
commit 12eb232213

View File

@@ -24,7 +24,18 @@ class Address extends mfBaseModel {
// prevent potential infinite loop
if($this->in_after_save) return true;
$this->in_after_save++;
$this->types = null;
$this->attributes = null;
$this->contracts = null;
$this->active_contracts = null;
$this->country = null;
$this->parent = null;
$this->childaddresses = null;
$this->links = null;
$this->links_to = null;
$this->linked_as = null;
$this->generateFibuAccountNumber();
$this->syncToFibuMerge();
$this->getCoords();