shish 2 лет назад
Родитель
Сommit
c21c7b5f1c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/TestController.php

+ 1 - 1
app-ghs/controllers/TestController.php

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