Expand net worth calculation. TODO in three places.

This commit is contained in:
James Cole
2023-01-08 18:51:24 +01:00
parent 8447670ed5
commit 862140a9fc
3 changed files with 4 additions and 4 deletions

View File

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