1
0
forked from poc/pds

changed logic in item overview for today filter

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
: 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') {