Some optimisations.

This commit is contained in:
James Cole
2015-05-16 08:05:04 +02:00
parent bed1adc367
commit b94781aef1
4 changed files with 116 additions and 9 deletions

View File

@@ -86,6 +86,20 @@ interface ReportQueryInterface
*/
public function incomeInPeriod(Carbon $start, Carbon $end, $includeShared = false);
/**
* This method returns all "expense" journals in a certain period, which are both transfers to a shared account
* and "ordinary" withdrawals. The query used is almost equal to ReportQueryInterface::journalsByRevenueAccount but it does
* not group and returns different fields.
*
* @param Carbon $start
* @param Carbon $end
* @param bool $includeShared
*
* @return Collection
*
*/
public function expenseInPeriod(Carbon $start, Carbon $end, $includeShared = false);
/**
* Gets a list of expenses grouped by the budget they were filed under.
*