|
|
@@ -115,7 +115,12 @@ class StaffSalary extends Api
|
|
|
//核算产量
|
|
|
$accountingYield = $byThePieceYield + $afterProductionYield;
|
|
|
//工时占比
|
|
|
- $manHourRate = number_format($accountingYield / $value['日定额'],4);
|
|
|
+ if ($value['日定额'] > 0){
|
|
|
+ $manHourRate = number_format($accountingYield / $value['日定额'],4);
|
|
|
+ }else{
|
|
|
+ $manHourRate = '0.0000';
|
|
|
+ }
|
|
|
+
|
|
|
for ($i=1; $i<11; $i++){
|
|
|
$bhKey = 'sczl_bh'.$i;
|
|
|
$xmKey = 'name'.$i;
|