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