Jelajahi Sumber

改一下bug

gogs 2 bulan lalu
induk
melakukan
1de957db72
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Service/StatisticService.php

+ 1 - 1
app/Service/StatisticService.php

@@ -1175,7 +1175,7 @@ class StatisticService extends Service
 
             // 如果不是最后一条
             $key = $item['employee_id'] . '_' . $item['month'];
-            if(!isset($employee_count[$key]))  $item['allocated_salary'] = 0;
+            if(!isset($all_salary[$key]))  $item['allocated_salary'] = 0;
             else {
                 if (--$employee_count[$key] > 0) {
                     $all_salary[$key] -= $item['allocated_salary'];