cqp 1 mese fa
parent
commit
6f41c6293f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      app/Service/StatisticService.php

+ 2 - 1
app/Service/StatisticService.php

@@ -1036,7 +1036,8 @@ class StatisticService extends StatisticCommonService
             $total_min = $employee_monthly_total_min[$key] ?? 0;
             // 计算工资分摊比例
             if ($total_min > 0) {
-                $ratio = round((round($item['total_work'] / 60, 2) / round($total_min / 60, 2)), 4);
+//                $ratio = round((round($item['total_work'] / 60, 2) / round($total_min / 60, 2)), 4);
+                $ratio = round($item['total_work'] / $total_min, 4);
             } else {
                 $ratio = 0;
             }