shish 3 лет назад
Родитель
Сommit
c5cfd74b5f
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      biz-ghs/product/classes/ProductClass.php

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

@@ -243,7 +243,8 @@ class ProductClass extends BaseClass
             } else {
                 $profit = bcsub($price, $cost, 2);
                 $mll = bcdiv($profit, $cost, 3);
-                $mll = round($mll, 2);
+                $mll = bcmul($mll, 100);
+                $mll = round($mll, 1);
             }
             $list[$k]['mll'] = $mll;
         }