changed logic in item overview for today 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 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 6m39s
Laravel Pint / pint (pull_request) Successful in 4m21s

This commit is contained in:
dhanabalan
2026-10-29 11:33:15 +05:30
parent 3677693121
commit f95e73f665

View File

@@ -165,13 +165,10 @@ class ItemOverview extends ChartWidget
? $monthlyPlanQuantity / $weeksCount ? $monthlyPlanQuantity / $weeksCount
: 0; : 0;
$dailyPlan = $weeklyPlan / 22.5; $hourlyPlan = round($weeklyPlan / 22.5, 2);
// Hourly plan: 684 / 22.5 = 30.4
// $hourlyPlan = round($dailyPlan / 22.5, 2);
// Same hourly plan value for every hour // Same hourly plan value for every hour
$planData = array_fill(0, 24, $dailyPlan); $planData = array_fill(0, 24, $hourlyPlan);
} }
elseif ($activeFilter === 'this_month') { elseif ($activeFilter === 'this_month') {