Merge pull request 'Changed logic in item overview page' (#1337) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #1337
This commit was merged in pull request #1337.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user