From e322069bb42a471ffa1ff868729561244af25d3c Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 24 Jan 2024 07:00:06 +0100 Subject: [PATCH] Possible fix for https://github.com/firefly-iii/firefly-iii/issues/8442 --- app/Support/Models/BillDateCalculator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Support/Models/BillDateCalculator.php b/app/Support/Models/BillDateCalculator.php index e5c2ef8f80..a84751a9f2 100644 --- a/app/Support/Models/BillDateCalculator.php +++ b/app/Support/Models/BillDateCalculator.php @@ -40,6 +40,7 @@ class BillDateCalculator */ public function getPayDates(Carbon $earliest, Carbon $latest, Carbon $billStart, string $period, int $skip, ?Carbon $lastPaid): array { + $this->diffInMonths = 0; $earliest->startOfDay(); $latest->endOfDay(); $billStart->startOfDay();