From 2d9aaac6535fb2964de3352eade6155e00756fa3 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sat, 30 Oct 2021 18:25:58 +0200 Subject: [PATCH] BIG-170: fix cashflow money out owner drawing. --- src/common/cashflowOptions.js | 2 +- .../CashFlowAccounts/CashflowAccountsGrid.js | 16 ---------------- .../MoneyOutDialog/MoneyOutContentFields.js | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/common/cashflowOptions.js b/src/common/cashflowOptions.js index 93e30ebf4..182020b26 100644 --- a/src/common/cashflowOptions.js +++ b/src/common/cashflowOptions.js @@ -18,7 +18,7 @@ export const addMoneyIn = [ export const addMoneyOut = [ { name: intl.get('cash_flow.owner_drawings'), - value: 'onwers_drawing', + value: 'OwnerDrawing', }, { name: intl.get('cash_flow.expenses'), diff --git a/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js b/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js index 5f59883af..cdb7a897b 100644 --- a/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js +++ b/src/containers/CashFlow/CashFlowAccounts/CashflowAccountsGrid.js @@ -57,21 +57,6 @@ function CashflowBankAccount({ account, }) { - // const [ - // bindMenu, - // bindMenuItem, - // useContextTrigger, - // { coords, setVisible, isVisible }, - // ] = useContextMenu(); - - // const [bindTrigger] = useContextTrigger({ - // collect: () => 'Title', - // }); - - // const handleClose = React.useCallback(() => { - // setVisible(false); - // }, [setVisible]); - // Handle view detail account. const handleViewClick = () => { openDrawer('account-drawer', { accountId: account.id }); @@ -126,7 +111,6 @@ function CashflowBankAccount({ to={`/cashflow-accounts/${account.id}/transactions`} > { switch (accountType) { - case 'onwers_drawing': + case 'OwnerDrawing': return ; case 'other_expense':