diff --git a/app/Support/Binder/AccountList.php b/app/Support/Binder/AccountList.php index dc6ef92b64..8b10330afd 100644 --- a/app/Support/Binder/AccountList.php +++ b/app/Support/Binder/AccountList.php @@ -52,11 +52,10 @@ class AccountList implements BinderInterface /** @var Collection $collection */ $collection = auth()->user()->accounts() ->leftJoin('account_types', 'account_types.id', '=', 'accounts.account_type_id') - ->where('account_types.type', AccountType::ASSET) + ->whereIn('account_types.type', [AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::MORTGAGE]) ->orderBy('accounts.name', 'ASC') ->get(['accounts.*']); } - if ('allAssetAccounts' !== $value) { $incoming = array_map('\intval', explode(',', $value)); $list = array_merge(array_unique($incoming), [0]);