mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-17 20:08:52 +00:00
Also do some account meta on the create screen.
This commit is contained in:
@@ -272,6 +272,13 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
|
||||
$this->storeInitialBalance($account, $data);
|
||||
}
|
||||
|
||||
switch ($account->accountType->type) {
|
||||
case 'Asset account':
|
||||
case 'Default account':
|
||||
$account->updateMeta('accountRole', $data['account_role']);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/* Tell transaction journal to store a new one.*/
|
||||
\Event::fire('account.store', [$account]);
|
||||
|
||||
Reference in New Issue
Block a user