From f95e73f6652bb47761c1a8110adf5423615e3903 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 11:33:15 +0530 Subject: [PATCH] changed logic in item overview for today filter --- app/Filament/Widgets/ItemOverview.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Filament/Widgets/ItemOverview.php b/app/Filament/Widgets/ItemOverview.php index eb3aa924..5ae20e2e 100644 --- a/app/Filament/Widgets/ItemOverview.php +++ b/app/Filament/Widgets/ItemOverview.php @@ -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') {