mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
Add corrected expense routes [skip ci]
This commit is contained in:
parent
a5d78f20ae
commit
deda9d3c54
@ -15,6 +15,32 @@ use Illuminate\Support\Collection;
|
|||||||
interface ReportQueryInterface
|
interface ReportQueryInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See ReportQueryInterface::incomeInPeriodCorrected
|
||||||
|
*
|
||||||
|
* @param Carbon $start
|
||||||
|
* @param Carbon $end
|
||||||
|
* @param bool $includeShared
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function expenseInPeriodCorrected(Carbon $start, Carbon $end, $includeShared = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a users accounts combined with various meta-data related to the start and end date.
|
* Get a users accounts combined with various meta-data related to the start and end date.
|
||||||
*
|
*
|
||||||
@ -26,7 +52,6 @@ interface ReportQueryInterface
|
|||||||
*/
|
*/
|
||||||
public function getAllAccounts(Carbon $start, Carbon $end, $includeShared = false);
|
public function getAllAccounts(Carbon $start, Carbon $end, $includeShared = false);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method returns all "income" journals in a certain period, which are both transfers from a shared account
|
* This method returns all "income" journals in a certain period, which are both transfers from a shared account
|
||||||
* and "ordinary" deposits. The query used is almost equal to ReportQueryInterface::journalsByRevenueAccount but it does
|
* and "ordinary" deposits. The query used is almost equal to ReportQueryInterface::journalsByRevenueAccount but it does
|
||||||
@ -42,19 +67,17 @@ interface ReportQueryInterface
|
|||||||
public function incomeInPeriod(Carbon $start, Carbon $end, $includeShared = false);
|
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
|
* This method works the same way as ReportQueryInterface::incomeInPeriod does, but instead of returning results
|
||||||
* and "ordinary" withdrawals. The query used is almost equal to ReportQueryInterface::journalsByRevenueAccount but it does
|
* will simply list the transaction journals only. This should allow any follow up counting to be accurate with
|
||||||
* not group and returns different fields.
|
* regards to tags.
|
||||||
*
|
*
|
||||||
* @param Carbon $start
|
* @param Carbon $start
|
||||||
* @param Carbon $end
|
* @param Carbon $end
|
||||||
* @param bool $includeShared
|
* @param bool $includeShared
|
||||||
*
|
*
|
||||||
* @return Collection
|
* @return Collection
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public function expenseInPeriod(Carbon $start, Carbon $end, $includeShared = false);
|
public function incomeInPeriodCorrected(Carbon $start, Carbon $end, $includeShared = false);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Account $account
|
* @param Account $account
|
||||||
|
Loading…
Reference in New Issue
Block a user