auto generate fibu_num for billingaddresses

This commit is contained in:
Frank Schubert
2024-07-08 17:51:54 +02:00
parent 857a095f16
commit 8e9a9a2e1b
7 changed files with 91 additions and 9 deletions

View File

@@ -34,7 +34,14 @@ class Contract extends mfBaseModel {
private $canceler;
private $creator;
private $editor;
protected function afterSave() {
if($this->billingaddress_id) {
$this->getProperty("billingaddress")->generateFibuAccountNumber();
}
}
private function getLinks() {
$this->linkFrom = [];