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