Merge pull request 'Added logic for shift flag in production report mail' (#1213) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Reviewed-on: #1213
This commit was merged in pull request #1213.
This commit is contained in:
@@ -247,6 +247,7 @@ class SendProductionReport extends Command
|
||||
|
||||
// $totalTargetQuantity = round($dailyTarget + $previousRemaining, 2);
|
||||
|
||||
|
||||
$totalTargetQuantity = round($dailyTarget, 2);
|
||||
|
||||
// $totalHourlyQuantity = Item::whereIn('id', $itemIds)
|
||||
@@ -293,9 +294,16 @@ class SendProductionReport extends Command
|
||||
$efficiency = 0;
|
||||
}
|
||||
|
||||
$dayShiftPlanQuan = ($totalTargetQuantity / 2);
|
||||
|
||||
$nightShiftPlanQuan = ($totalTargetQuantity / 2);
|
||||
if($line->shift_flag == '0'){
|
||||
$dayShiftPlanQuan = ($totalTargetQuantity / 2);
|
||||
$nightShiftPlanQuan = ($totalTargetQuantity / 2);
|
||||
}
|
||||
elseif($line->shift_flag == '1'){
|
||||
$dayShiftPlanQuan = ($totalTargetQuantity);
|
||||
}
|
||||
elseif($line->shift_flag == '2'){
|
||||
$nightShiftPlanQuan = ($totalTargetQuantity);
|
||||
}
|
||||
|
||||
if (strtolower($line->type) == 'fg line') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user