Skip to content

Commit

Permalink
close akaunting#772 Fixed: New install will not allow cash account to…
Browse files Browse the repository at this point in the history
… change currency
  • Loading branch information
cuneytsenturk committed Mar 26, 2019
1 parent 20d73a8 commit 8cd10cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Banking/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function update(Account $account, Request $request)
'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));
}
}
Expand Down

0 comments on commit 8cd10cd

Please sign in to comment.