diff --git a/app/Console/Commands/SendProductionReport.php b/app/Console/Commands/SendProductionReport.php index bd01d47f..78da8476 100644 --- a/app/Console/Commands/SendProductionReport.php +++ b/app/Console/Commands/SendProductionReport.php @@ -299,6 +299,9 @@ class SendProductionReport extends Command $efficiency = 0; } + $dayShiftPlanQuan = 0; + $nightShiftPlanQuan = 0; + if($line->shift_flag == '0'){ $dayShiftPlanQuan = ($totalTargetQuantity / 2); $nightShiftPlanQuan = ($totalTargetQuantity / 2);