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

@@ -15,7 +15,13 @@ class Order extends mfBaseModel {
private $editor;
private $shippingdate;
protected function afterSave() {
if($this->billingaddress_id) {
$this->getProperty("billingaddress")->generateFibuAccountNumber();
}
}
public function getNewPos() {
if(!$this->id) {
return 0;