Browse Source

Merge branch 'master' into dev

shish 8 months ago
parent
commit
e9b9cc2027
1 changed files with 1 additions and 2 deletions
  1. 1 2
      biz-ghs/product/classes/ProductClass.php

+ 1 - 2
biz-ghs/product/classes/ProductClass.php

@@ -519,8 +519,7 @@ class ProductClass extends BaseClass
                 $list[$k]['skPrice'] = floatval($v['skDiscountPrice']);
                 $list[$k]['skPrice'] = floatval($v['skDiscountPrice']);
             }
             }
             $list[$k]['price'] = $price;
             $list[$k]['price'] = $price;
-
-            $cost = $v['cost'] ?? 0;
+            $cost = $v['avCost'] ?? 0;
             $ml = 0;
             $ml = 0;
             if ($price > 0) {
             if ($price > 0) {
                 $profit = bcsub($price, $cost, 2);
                 $profit = bcsub($price, $cost, 2);