From 87b72e4bcda6370e4ed5959a405b78c49d20c371 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 18 Apr 2016 19:33:02 +0200 Subject: [PATCH] Fix #245 --- app/Repositories/Bill/BillRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php index 7420b1f902..b371d9df23 100644 --- a/app/Repositories/Bill/BillRepository.php +++ b/app/Repositories/Bill/BillRepository.php @@ -370,8 +370,7 @@ class BillRepository implements BillRepositoryInterface */ public function getRanges(Bill $bill, Carbon $start, Carbon $end): array { - $startOfBill = $bill->date; - $startOfBill = Navigation::startOfPeriod($startOfBill, $bill->repeat_freq); + $startOfBill = Navigation::startOfPeriod($start, $bill->repeat_freq); // all periods of this bill up until the current period: