From 12eb2322138608660f40b45ccc3ae65c249529fa Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 7 Jan 2025 15:29:30 +0100 Subject: [PATCH] Fixed Address::afterSave() setting custnum & fibu account num --- application/Address/Address.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/application/Address/Address.php b/application/Address/Address.php index d5e881e6a..4bd40ab69 100644 --- a/application/Address/Address.php +++ b/application/Address/Address.php @@ -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();