|
|
@@ -87,7 +87,7 @@ class TestController extends BaseController
|
|
|
$num = $orderItem->xhNum ?? 0;
|
|
|
$xhUnitPrice = $orderItem->xhUnitPrice ?? 0;
|
|
|
|
|
|
- $now = bcmul($num, $xhUnitPrice);
|
|
|
+ $now = bcmul($num, $xhUnitPrice, 2);
|
|
|
$currentAmount = bcadd($currentAmount, $now, 2);
|
|
|
|
|
|
$remainNum = bcsub($num, $refundNum);
|