mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
BIG-170: fix cashflow money out owner drawing.
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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 : '-'}
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user