Remove liabilities from net worth

This commit is contained in:
James Cole
2022-12-27 08:49:00 +01:00
parent 83b5ca69dd
commit e389fd7d7c
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ class NetWorth implements NetWorthInterface
*/
private function getAccounts(): Collection
{
$accounts = $this->accountRepository->getAccountsByType([AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE, AccountType::DEFAULT, AccountType::CREDITCARD]);
$accounts = $this->accountRepository->getAccountsByType([AccountType::ASSET, AccountType::DEFAULT]);
$filtered = new Collection();
/** @var Account $account */
foreach ($accounts as $account) {