Some undocumented changes for #2445 and #2447

This commit is contained in:
James Cole
2019-08-21 04:59:35 +02:00
parent c0935e192d
commit ecc37b2ed3
3 changed files with 24 additions and 21 deletions

View File

@@ -413,13 +413,13 @@ class BillRepository implements BillRepositoryInterface
*/
public function getPaidDatesInRange(Bill $bill, Carbon $start, Carbon $end): Collection
{
$dates = $bill->transactionJournals()->before($end)->after($start)->get(
return $bill->transactionJournals()
->before($end)->after($start)->get(
[
'transaction_journals.id', 'transaction_journals.date',
'transaction_journals.transaction_group_id',
]
)->pluck('date', 'id');
return $dates;
);
}
/**