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 = [ export const addMoneyOut = [
{ {
name: intl.get('cash_flow.owner_drawings'), name: intl.get('cash_flow.owner_drawings'),
value: 'onwers_drawing', value: 'OwnerDrawing',
}, },
{ {
name: intl.get('cash_flow.expenses'), name: intl.get('cash_flow.expenses'),

View File

@@ -57,21 +57,6 @@ function CashflowBankAccount({
account, 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. // Handle view detail account.
const handleViewClick = () => { const handleViewClick = () => {
openDrawer('account-drawer', { accountId: account.id }); openDrawer('account-drawer', { accountId: account.id });
@@ -126,7 +111,6 @@ function CashflowBankAccount({
to={`/cashflow-accounts/${account.id}/transactions`} to={`/cashflow-accounts/${account.id}/transactions`}
> >
<BankAccount <BankAccount
// {...bindTrigger}
title={account.name} title={account.name}
code={account.code} code={account.code}
balance={!isNull(account.amount) ? account.formatted_amount : '-'} balance={!isNull(account.amount) ? account.formatted_amount : '-'}

View File

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