changed logic in item overview for todaya nd yesterday filter
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Failing after 3m3s
Laravel Larastan / larastan (pull_request) Failing after 7m21s

This commit is contained in:
dhanabalan
2026-10-29 11:26:06 +05:30
parent 564c4646ca
commit db901af048

View File

@@ -167,14 +167,11 @@ class ItemOverview extends ChartWidget
$dailyPlan = $weeklyPlan / 7; $dailyPlan = $weeklyPlan / 7;
// Hourly plan: 684 / 22.5 = 30.4
$hourlyPlan = round($dailyPlan / 22.5, 2); $hourlyPlan = round($dailyPlan / 22.5, 2);
$planData = array_fill( // Same hourly plan value for every hour
0, $planData = array_fill(0, 24, $hourlyPlan);
count($orderedData),
$hourlyPlan
);
} }
elseif ($activeFilter === 'this_month') { elseif ($activeFilter === 'this_month') {