auto generate fibu_num for billingaddresses
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user