mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: auto-increment cashflow transactions
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import intl from 'react-intl-universal';
|
||||
import { Dialog, DialogSuspense } from '@/components';
|
||||
import withDialogRedux from '@/components/DialogReduxConnect';
|
||||
import { compose } from 'redux';
|
||||
|
||||
const MoneyOutDialogContent = React.lazy(() =>
|
||||
import('./MoneyOutDialogContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Money out dialog.
|
||||
*/
|
||||
function MoneyOutDialog({
|
||||
dialogName,
|
||||
payload = { account_type: null, account_id: null, account_name: '' },
|
||||
|
||||
isOpen,
|
||||
}) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={intl.get('cash_flow_transaction.money_out', {
|
||||
value: payload.account_name,
|
||||
})}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
className={'dialog--money-out'}
|
||||
>
|
||||
<DialogSuspense>
|
||||
<MoneyOutDialogContent
|
||||
dialogName={dialogName}
|
||||
accountId={payload.account_id}
|
||||
accountType={payload.account_type}
|
||||
/>
|
||||
</DialogSuspense>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDialogRedux())(MoneyOutDialog);
|
||||
Reference in New Issue
Block a user