Added logic for shift flag in production report mail
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 3m0s
Laravel Larastan / larastan (pull_request) Failing after 5m40s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 3m0s
Laravel Larastan / larastan (pull_request) Failing after 5m40s
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