Optimise queries.

This commit is contained in:
James Cole
2015-12-26 09:39:35 +01:00
parent 209116e766
commit 8b0f0fb615
3 changed files with 58 additions and 11 deletions

View File

@@ -49,6 +49,17 @@ interface BillRepositoryInterface
*/
public function billPaymentsInRange(Bill $bill, Carbon $start, Carbon $end);
/**
* This method returns all active bills which have been paid for in the given range,
* with the field "paid" indicating how much the bill was for.
*
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function billsPaidInRange(Carbon $start, Carbon $end);
/**
* Create a fake bill to help the chart controller.
*