From fa657ffa3562319d21189fab75b556de6bfb0e87 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 11:08:01 +0530 Subject: [PATCH] solve dbug in query this week in item overview --- app/Filament/Widgets/ItemOverview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Widgets/ItemOverview.php b/app/Filament/Widgets/ItemOverview.php index cca295bb..9c8e9e37 100644 --- a/app/Filament/Widgets/ItemOverview.php +++ b/app/Filament/Widgets/ItemOverview.php @@ -185,7 +185,7 @@ class ItemOverview extends ChartWidget elseif ($activeFilter === 'this_week') { // Get the total plan quantity for the current month - $monthlyPlanQuantity = \DB::table('YOUR_ACTUAL_PLAN_TABLE') + $monthlyPlanQuantity = \DB::table('production_plans') ->where('plant_id', $selectedPlant) ->where('line_id', $selectedLine) ->whereYear('created_at', $startDate->year)