fix: BIG-166 cashflow new bank/cash account in cashflow service.

This commit is contained in:
a.bouhuolia
2021-10-30 17:19:35 +02:00
parent 0ae31d519c
commit b6fc06ea0c
4 changed files with 71 additions and 15 deletions

View File

@@ -35,11 +35,17 @@ function CashFlowAccountsActionsBar({
};
// Handle add bank account.
const handleAddBankAccount = () => {
openDialog('account-form', {});
openDialog('account-form', {
action: 'NEW_ACCOUNT_DEFINED_TYPE',
accountType: 'cash',
});
};
// Handle add cash account.
const handleAddCashAccount = () => {
openDialog('account-form', {});
openDialog('account-form', {
action: 'NEW_ACCOUNT_DEFINED_TYPE',
accountType: 'bank',
});
};
// Handle inactive switch changing.
const handleInactiveSwitchChange = (event) => {