Changed logic in item overview page #1337

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

View File

@@ -186,10 +186,8 @@ class ItemOverview extends ChartWidget
$weeklyPlanQuantity = \DB::table('production_plans')
->where('plant_id', $selectedPlant)
->where('line_id', $selectedLine)
->whereBetween('created_at', [
$startDate,
$endDate
])
->whereYear('created_at', $startDate->year)
->whereMonth('created_at', $startDate->month)
->sum('plan_quantity');
$daysCount = count($orderedData);