BIG-170: fix cashflow money out owner drawing.

This commit is contained in:
a.bouhuolia
2021-10-30 18:25:58 +02:00
parent b6fc06ea0c
commit 2d9aaac653
3 changed files with 2 additions and 18 deletions

View File

@@ -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'),

View File

@@ -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`}
>
<BankAccount
// {...bindTrigger}
title={account.name}
code={account.code}
balance={!isNull(account.amount) ? account.formatted_amount : '-'}

View File

@@ -7,7 +7,7 @@ import TransferToAccountFormFields from './TransferToAccount/TransferToAccountFo
function MoneyOutContentFields({ accountType }) {
const handleTransactionType = () => {
switch (accountType) {
case 'onwers_drawing':
case 'OwnerDrawing':
return <OwnerDrawingsFormFields />;
case 'other_expense':