From 2056ba5e08b792d2e4920386402bb8f1bdb4b939 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 1 Mar 2026 14:12:11 +0100 Subject: [PATCH] Fix range. --- app/Http/Controllers/Chart/ReportController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.php index 9c56053a4a..51c25230f6 100644 --- a/app/Http/Controllers/Chart/ReportController.php +++ b/app/Http/Controllers/Chart/ReportController.php @@ -151,9 +151,8 @@ class ReportController extends Controller $cache->addProperty($end); $cache->addProperty($this->convertToPrimary); if ($cache->has()) { - // return response()->json($cache->get()); +// return response()->json($cache->get()); } - Log::debug('Going to do operations for accounts ', $accounts->pluck('id')->toArray()); Log::debug(sprintf('Period: %s to %s', $start->toW3cString(), $end->toW3cString())); $format = Navigation::preferredCarbonFormat($start, $end); @@ -249,7 +248,7 @@ class ReportController extends Controller } // 2026-03-01 similar fix for monthly ranges. if ('1M' === $preferredRange) { - $currentEnd = Navigation::endOfPeriod($currentEnd, $preferredRange); + // $currentEnd = Navigation::endOfPeriod($currentEnd, $preferredRange); } Log::debug(sprintf('Start of sub-loop, current end is %s', $currentEnd->toW3cString())); while ($currentStart <= $currentEnd) {