Banking account edit set always default account
This commit is contained in:
parent
398c8d38a6
commit
fa6a5d7f47
@ -81,7 +81,7 @@ class Accounts extends Controller
|
||||
{
|
||||
$currencies = Currency::enabled()->pluck('name', 'code');
|
||||
|
||||
$account->default_account = ($account->id == setting('general.default_account')) ?: 1;
|
||||
$account->default_account = ($account->id == setting('general.default_account')) ? 1 : 0;
|
||||
|
||||
$currency = Currency::where('code', '=', $account->currency_code)->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user