First attempt at audit report (uses lots of queries).

This commit is contained in:
James Cole
2016-04-08 14:50:18 +02:00
parent 8116644526
commit 33bf373151
8 changed files with 465 additions and 32 deletions

View File

@@ -129,6 +129,15 @@ interface AccountRepositoryInterface
*/
public function getJournals(Account $account, int $page): LengthAwarePaginator;
/**
* @param Account $account
* @param Carbon $start
* @param Carbon $end
*
* @return Collection
*/
public function getJournalsInRange(Account $account, Carbon $start, Carbon $end): Collection;
/**
* Get the accounts of a user that have piggy banks connected to them.
*
@@ -151,6 +160,24 @@ interface AccountRepositoryInterface
*/
public function leftOnAccount(Account $account, Carbon $date): string;
/**
* Returns the date of the very last transaction in this account.
*
* @param Account $account
*
* @return Carbon
*/
public function newestJournalDate(Account $account): Carbon;
/**
* Returns the date of the very first transaction in this account.
*
* @param Account $account
*
* @return Carbon
*/
public function oldestJournalDate(Account $account): Carbon;
/**
* @param Account $account
*