فهرست منبع

糊盒计时工资计算

unknown 17 ساعت پیش
والد
کامیت
e8bfe8bcc1
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      application/service/GluSalaryCalculationService.php

+ 4 - 4
application/service/GluSalaryCalculationService.php

@@ -500,8 +500,8 @@ class GluSalaryCalculationService
 
                 $duration = isset($row['wgjs_js' . $i]) ? (float)$row['wgjs_js' . $i] : 0;
                 $type = isset($row['wgjs_yy' . $i]) ? trim($row['wgjs_yy' . $i]) : '';
-                $salary = isset($row['wgjs_je' . $i]) ? (float)$row['wgjs_je' . $i] : 0;
-                $price = '';
+                $price = isset($row['wgjs_je' . $i]) ? (float)$row['wgjs_je' . $i] : 0;
+                $salary = floatval(number_format($duration * $price, 2, '.', ''));
                 $name = $employeeNames[$bh] ?? '';
                 $key = $ymd . '-' . $bh . '-' . $name . '-' . $price;
 
@@ -518,11 +518,11 @@ class GluSalaryCalculationService
                     'sczl_rq'  => $sczl_rq,
                     'type'     => $type,
                     'duration' => floatval(number_format($duration, 2, '.', '')),
-                    'price'    => '',
+                    'price'    => $price,
                     'remark'   => '',
                     'bh'       => $bh,
                     '姓名'     => $name,
-                    'salary'   => floatval(number_format($salary, 2, '.', '')),
+                    'salary'   => $salary,
                 ];
             }
         }