mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove cash accounts from list [skip ci]
This commit is contained in:
parent
8f104d555a
commit
0e6677ccb3
@ -62,6 +62,13 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
$end = 0;
|
$end = 0;
|
||||||
$diff = 0;
|
$diff = 0;
|
||||||
|
|
||||||
|
// remove cash account, if any:
|
||||||
|
$accounts =$accounts->filter(function(Account $account) {
|
||||||
|
if($account->accountType->type != 'Cash account') {
|
||||||
|
return $account;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// summarize:
|
// summarize:
|
||||||
foreach ($accounts as $account) {
|
foreach ($accounts as $account) {
|
||||||
$start += $account->startBalance;
|
$start += $account->startBalance;
|
||||||
|
Loading…
Reference in New Issue
Block a user