Merge pull request 'solve dbug in query this week in item overview' (#1339) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1339
This commit was merged in pull request #1339.
This commit is contained in:
2026-10-29 05:38:20 +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)