Included full home controller tests.

This commit is contained in:
James Cole
2015-04-07 20:54:43 +02:00
parent ff5ecf6182
commit 8f9b1b866b
5 changed files with 65 additions and 20 deletions

View File

@@ -151,6 +151,13 @@ class AccountRepository implements AccountRepositoryInterface
->get(['transaction_journals.*', 'transaction_currencies.symbol', 'transaction_types.type']);
}
/**
* @return float
*/
public function sumOfEverything() {
return floatval(Auth::user()->transactions()->sum('amount'));
}
/**
* @param Account $account
* @param int $page

View File

@@ -94,6 +94,11 @@ interface AccountRepositoryInterface
*/
public function getLastActivity(Account $account);
/**
* @return float
*/
public function sumOfEverything();
/**
* Get savings accounts and the balance difference in the period.
*