changed logic in item overview for today filter #1345

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-29 06:03:30 +00:00
Showing only changes of commit f95e73f665 - Show all commits

View File

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