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