1
0
forked from poc/pds

Merge pull request 'changed logic in item overview for todaya nd yesterday filter' (#1343) from ranjith-dev into master

Reviewed-on: poc/pds#1343
This commit is contained in:
2026-10-29 05:56:20 +00:00

View File

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