From 57bcc264bbff4b88dd3c7f913309bf0e485070a8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 18 Nov 2026 10:16:01 +0530 Subject: [PATCH] Added logic for base fg line non planned production quantities --- app/Console/Commands/SendProductionReport.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Console/Commands/SendProductionReport.php b/app/Console/Commands/SendProductionReport.php index a4ecfe4c..a0846de5 100644 --- a/app/Console/Commands/SendProductionReport.php +++ b/app/Console/Commands/SendProductionReport.php @@ -332,6 +332,12 @@ class SendProductionReport extends Command ->where('line_id', $line->id) ->whereBetween('created_at', [$startDate, $endDate]) ->count(); + + $nonPlannedproductionQuantity = ProductionQuantity::where('plant_id', $plant->id) + ->where('line_id', $line->id) + ->whereNotIn('item_id', $itemIds) + ->whereBetween('created_at', [$startDate, $endDate]) + ->count(); } if ($productionQuantity > 0) { -- 2.49.1