changed logic in item overview #1341

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-29 05:50:06 +00:00
Showing only changes of commit 120982dd0b - Show all commits

View File

@@ -153,7 +153,7 @@ class ItemOverview extends ChartWidget
if (in_array($activeFilter, ['today', 'yesterday'])) {
// Get total monthly plan quantity
$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)