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

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

@@ -103,7 +103,7 @@ class ExpendController extends BaseController
                 $currentAmount = $amount;
                 $unAmount = $amount;
                 if (isset($arr[$staffId])) {
-                    $arr[$staffId]['amount'] = bcadd($arr[$staffId]['amount'], $unAmount);
+                    $arr[$staffId]['amount'] = bcadd($arr[$staffId]['amount'], $unAmount,2);
                     $arr[$staffId]['num'] = bcadd($arr[$staffId]['num'], 1);
                 } else {
                     $arr[$staffId]['totalAmount'] = $currentAmount;