mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30: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 = [
|
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'),
|
||||||
|
|||||||
@@ -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 : '-'}
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user