From 8cd10cd58f4246eb07e5df44ae1d0f0b3c57e426 Mon Sep 17 00:00:00 2001 From: cuneytsenturk Date: Tue, 26 Mar 2019 17:49:05 +0300 Subject: [PATCH] close #772 Fixed: New install will not allow cash account to change currency --- app/Http/Controllers/Banking/Accounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Banking/Accounts.php b/app/Http/Controllers/Banking/Accounts.php index 63cfa052c..a30c2070b 100644 --- a/app/Http/Controllers/Banking/Accounts.php +++ b/app/Http/Controllers/Banking/Accounts.php @@ -107,7 +107,7 @@ class Accounts extends Controller 'payments' => 'payments', ]); - if ($account->id == setting('general.default_account')) { + if (!$request['enabled'] && $account->id == setting('general.default_account')) { $relationships[] = strtolower(trans_choice('general.companies', 1)); } }