浏览代码

Modification d'un document : bug montant total document #166

dev
父节点
当前提交
2a8599ef20
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      common/models/Order.php

+ 3
- 0
common/models/Order.php 查看文件

@@ -209,6 +209,9 @@ class Order extends ActiveRecordCommon
*/
public function initAmount()
{
$this->amount = 0 ;
$this->weight = 0 ;

if (isset($this->productOrder)) {
foreach ($this->productOrder as $productOrder) {
$this->amount += $productOrder->price * $productOrder->quantity;

正在加载...
取消
保存