From 7237466a008fc9dcb1e7ce6dfed7aedee6404802 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 1 Oct 2026 18:12:52 +0530 Subject: [PATCH] changed logic in monthly actual quantity in target --- app/Livewire/ProductionTargetPlan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/ProductionTargetPlan.php b/app/Livewire/ProductionTargetPlan.php index 3b452a70..44e1be74 100644 --- a/app/Livewire/ProductionTargetPlan.php +++ b/app/Livewire/ProductionTargetPlan.php @@ -645,7 +645,7 @@ class ProductionTargetPlan extends Component ->whereMonth('created_at', $month) ->sum('plan_quantity'); - $this->monthlyActualQuantity = ProductionPlan::where('plant_id', $plantId) + $this->monthlyActualQuantity = QualityValidation::where('plant_id', $plantId) ->where('line_id', $lineId) ->whereYear('created_at', $year) ->whereMonth('created_at', $month)