diff --git a/app/Console/Commands/SendProductionReport.php b/app/Console/Commands/SendProductionReport.php index 36d2a1eb..7f4b25f6 100644 --- a/app/Console/Commands/SendProductionReport.php +++ b/app/Console/Commands/SendProductionReport.php @@ -363,7 +363,7 @@ class SendProductionReport extends Command $dayShiftPlanQuan = 0; $nightShiftPlanQuan = 0; - $isSunday = $endDate->isSunday(); + $isSunday = $startDate->isSunday(); if ($isSunday) { $dayShiftPlanQuan = ($totalTargetQuantity);