Remove liabilities from net worth

This commit is contained in:
James Cole 2022-12-27 08:49:00 +01:00
parent 83b5ca69dd
commit e389fd7d7c
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ class BasicController extends Controller
/** @var NetWorthInterface $netWorthHelper */
$netWorthHelper = app(NetWorthInterface::class);
$netWorthHelper->setUser($user);
$allAccounts = $this->accountRepository->getActiveAccountsByType([AccountType::ASSET, AccountType::DEBT, AccountType::LOAN, AccountType::MORTGAGE]);
$allAccounts = $this->accountRepository->getActiveAccountsByType([AccountType::ASSET]);
// filter list on preference of being included.
$filtered = $allAccounts->filter(

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) {