Ver Fonte

Merge branch 'master' into dev

shish há 8 meses atrás
pai
commit
39bcecfcef
1 ficheiros alterados com 1 adições e 1 exclusões
  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;
             $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);