Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove liabilities from net worth
James Colee389fd7d7c74
diff --git a/app/Api/V1/Controllers/Summary/BasicController.php b/app/Api/V1/Controllers/Summary/BasicController.phpindex 3a23fc4b6d..5f56706121 100644--- a/app/Api/V1/Controllers/Summary/BasicController.php+++ b/app/Api/V1/Controllers/Summary/BasicController.php@@ -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(diff --git a/app/Helpers/Report/NetWorth.php b/app/Helpers/Report/NetWorth.phpindex b0158d1b9f..f8fc20d47f 100644--- a/app/Helpers/Report/NetWorth.php+++ b/app/Helpers/Report/NetWorth.php@@ -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) {