solve dbug in query this week in item overview #1339

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-29 05:38:21 +00:00

View File

@@ -185,7 +185,7 @@ class ItemOverview extends ChartWidget
elseif ($activeFilter === 'this_week') { elseif ($activeFilter === 'this_week') {
// Get the total plan quantity for the current month // 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('plant_id', $selectedPlant)
->where('line_id', $selectedLine) ->where('line_id', $selectedLine)
->whereYear('created_at', $startDate->year) ->whereYear('created_at', $startDate->year)