From 3677693121f581facedbdcfcf435868aba20cfbb Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 11:29:56 +0530 Subject: [PATCH] changed logic in item overview bug solved --- app/Filament/Widgets/ItemOverview.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Filament/Widgets/ItemOverview.php b/app/Filament/Widgets/ItemOverview.php index 6b01f075..eb3aa924 100644 --- a/app/Filament/Widgets/ItemOverview.php +++ b/app/Filament/Widgets/ItemOverview.php @@ -165,13 +165,13 @@ class ItemOverview extends ChartWidget ? $monthlyPlanQuantity / $weeksCount : 0; - $dailyPlan = $weeklyPlan / 7; + $dailyPlan = $weeklyPlan / 22.5; // Hourly plan: 684 / 22.5 = 30.4 - $hourlyPlan = round($dailyPlan / 22.5, 2); + // $hourlyPlan = round($dailyPlan / 22.5, 2); // Same hourly plan value for every hour - $planData = array_fill(0, 24, $hourlyPlan); + $planData = array_fill(0, 24, $dailyPlan); } elseif ($activeFilter === 'this_month') {