WIP / fix_accounts

This commit is contained in:
elforjani3
2020-07-01 13:24:18 +02:00
parent 111aa83908
commit aaa362f2f8
9 changed files with 266 additions and 208 deletions

View File

@@ -69,7 +69,12 @@ 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,
subaccount: true,
});
},
[openDialog],
);