This commit is contained in:
James Cole
2016-04-18 19:33:02 +02:00
parent 3fa659632c
commit 87b72e4bcd

View File

@@ -370,8 +370,7 @@ class BillRepository implements BillRepositoryInterface
*/ */
public function getRanges(Bill $bill, Carbon $start, Carbon $end): array public function getRanges(Bill $bill, Carbon $start, Carbon $end): array
{ {
$startOfBill = $bill->date; $startOfBill = Navigation::startOfPeriod($start, $bill->repeat_freq);
$startOfBill = Navigation::startOfPeriod($startOfBill, $bill->repeat_freq);
// all periods of this bill up until the current period: // all periods of this bill up until the current period: