diff --git a/app/Console/Commands/SendProductionReport.php b/app/Console/Commands/SendProductionReport.php index dd4fd0d..d3f3347 100644 --- a/app/Console/Commands/SendProductionReport.php +++ b/app/Console/Commands/SendProductionReport.php @@ -236,7 +236,7 @@ class SendProductionReport extends Command ->count(); } - if(strtolower($line->type) == 'process fg line'){ + else if(strtolower($line->type) == 'process fg line'){ $productionQuantity = \App\Models\ProcessOrder::where('plant_id', $plant->id) ->where('line_id', $line->id) ->whereBetween('created_at', [$startDate, $endDate])