Merge remote-tracking branch 'origin/accounts_fix'

This commit is contained in:
Ahmed Bouhuolia
2020-07-01 18:24:42 +02:00
18 changed files with 271 additions and 245 deletions

View File

@@ -114,7 +114,11 @@ function AccountsDataTable({
const handleNewParentAccount = useCallback(
(account) => {
openDialog('account-form', { action: 'new_child', id: account.id });
openDialog('account-form', {
action: 'new_child',
parentAccountId: account.id,
accountTypeId: account.account_type_id,
});
},
[openDialog],
);