Fixed saving termination on new

This commit is contained in:
Frank Schubert
2021-08-03 20:50:52 +02:00
parent 2619183304
commit 33d8e2da0e
3 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -14,7 +14,12 @@ class Order extends mfBaseModel {
return 0;
}
$p = end($this->getProperty("products"));
$products = $this->getProperty("products");
if(!is_array($products) || !count($products)) {
return 1;
}
$p = end($products);
return ++$p->pos;
}
+2
View File
@@ -5,6 +5,8 @@ class OrderModel {
public $billingaddress_id;
public $order_date;
public $finish_date;
public $finish_after;
public $finish_after_comment;
public $billing_text;
public $bank_account_bank;
public $bank_account_owner;