shish 8 bulan lalu
induk
melakukan
a8e30d0628
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      biz-hd/product/classes/ProductClass.php

+ 1 - 1
biz-hd/product/classes/ProductClass.php

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