From de634da513055997d4f7e6180eca8310f46520ae Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 2 Dec 2015 08:22:25 +0100 Subject: [PATCH] Only get active savings accounts. --- app/Repositories/Account/AccountRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index d911cdea8e..4194aaf9ff 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -273,6 +273,7 @@ class AccountRepository implements AccountRepositoryInterface $accounts = Auth::user()->accounts()->accountTypeIn(['Default account', 'Asset account'])->orderBy('accounts.name', 'ASC') ->leftJoin('account_meta', 'account_meta.account_id', '=', 'accounts.id') ->where('account_meta.name', 'accountRole') + ->where('accounts.active', 1) ->where('account_meta.data', '"savingAsset"') ->get(['accounts.*']); $start = clone Session::get('start', new Carbon);