shish 3 лет назад
Родитель
Сommit
a9b72d2c23
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app-hd/controllers/PurchaseController.php

+ 3 - 1
app-hd/controllers/PurchaseController.php

@@ -288,12 +288,14 @@ class PurchaseController extends BaseController
                                         $llNum = $llOp['num'] ?? 0;
                                         if ($llNum >= $totalWeight) {
                                             $sendCost = $llOp['amount'] ?? 0;
+                                            $sendCost = round($sendCost, 2);
                                         }
                                     }
                                 }
                             } else {
                                 $perKiloCost = $trans['perKiloCost'] ?? 0;
-                                $sendCost = bcmul($perKiloCost, $totalWeight, 2);
+                                $sendCost = bcmul($perKiloCost, $totalWeight, 3);
+                                $sendCost = round($sendCost, 2);
                             }
                         }
                     }