From ee3582904fd34eb64bb7983429475ea6423201c5 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 29 Sep 2026 11:26:15 +0530 Subject: [PATCH] Added received quan production report --- app/Console/Commands/SendProductionReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {