Also do some account meta on the create screen.

This commit is contained in:
James Cole
2014-12-05 21:44:01 +01:00
parent 919a0c01e4
commit 357638a26c
4 changed files with 10 additions and 2 deletions

View File

@@ -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]);