shish 3 жил өмнө
parent
commit
a9b72d2c23

+ 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);
                             }
                         }
                     }