瀏覽代碼

Order::initInvoicePrices() : gestion de la quantity

refactoring
Guillaume Bourgeois 2 年之前
父節點
當前提交
c5dd101176
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      common/models/Order.php

+ 2
- 1
common/models/Order.php 查看文件

@@ -981,7 +981,8 @@ class Order extends ActiveRecordCommon
$productOrder->invoice_price = $productOrder->product->getPrice([
'user' => isset($params['user']) ? $params['user'] : null,
'user_producer' => isset($params['user_producer']) ? $params['user_producer'] : null,
'point_sale' => isset($params['point_sale']) ? $params['point_sale'] : null
'point_sale' => isset($params['point_sale']) ? $params['point_sale'] : null,
'quantity' => $productOrder->quantity
]);
$productOrder->save();
}

Loading…
取消
儲存