Merge pull request 'changed logic in item overview' (#1341) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1341
This commit was merged in pull request #1341.
This commit is contained in:
2026-10-29 05:50:05 +00:00

View File

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