import React from 'react'; import { Form } from 'formik'; import { FormGroup, RadioGroup, Radio, Checkbox, Button, Intent, } from '@blueprintjs/core'; import { useHistory } from 'react-router-dom'; import { AccountsSelectList } from 'components'; import { FieldRequiredHint, } from 'components'; import { FormattedMessage as T } from 'react-intl'; import { compose } from 'utils'; import withAccounts from 'containers/Accounts/withAccounts'; function AccountantForm({ // #withAccounts accountsList, }) { const history = useHistory(); const handleCloseClick = () => { history.go(-1); }; return (
Accounts}> } label={Accounting Basis}> Deposit customer account} helperText={ 'Select a preferred account to deposit into it after customer make payment.' } labelInfo={} > } filterByTypes={['current_asset']} /> Withdrawal customer account} helperText={ 'Select a preferred account to deposit into it after customer make payment.' } labelInfo={} > } filterByTypes={['current_asset']} /> Vendor advance deposit} helperText={ 'Select a preferred account to deposit into it vendor advanced deposits.' } labelInfo={} > } filterByTypes={['current_asset', 'other_current_asset']} />
); } export default compose( withAccounts(({ accountsList }) => ({ accountsList })), )(AccountantForm);