From 01e45de605287b6d30c274a70818d21b736122be Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 27 Jan 2019 07:57:10 +0100 Subject: [PATCH] Include cash accounts in income and expense charts. --- app/Http/Controllers/Chart/AccountController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.php index 33b24f0596..913e5d861d 100644 --- a/app/Http/Controllers/Chart/AccountController.php +++ b/app/Http/Controllers/Chart/AccountController.php @@ -110,7 +110,7 @@ class AccountController extends Controller $tempData = []; // grab all accounts and names - $accounts = $this->accountRepository->getAccountsByType([AccountType::EXPENSE, AccountType::BENEFICIARY]); + $accounts = $this->accountRepository->getAccountsByType([AccountType::EXPENSE, AccountType::BENEFICIARY, AccountType::CASH]); $accountNames = $this->extractNames($accounts); // grab all balances @@ -542,7 +542,7 @@ class AccountController extends Controller $tempData = []; // grab all accounts and names - $accounts = $this->accountRepository->getAccountsByType([AccountType::REVENUE]); + $accounts = $this->accountRepository->getAccountsByType([AccountType::REVENUE, AccountType::CASH]); $accountNames = $this->extractNames($accounts); // grab all balances