feat: add filterByTypes

This commit is contained in:
elforjani13
2021-12-07 11:00:57 +02:00
parent ac99a6ca75
commit 192bcdc696
4 changed files with 14 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ function RefundVendorCreditFloatingActions({
<Button
intent={Intent.PRIMARY}
loading={isSubmitting}
style={{ minWidth: '75px' }}
style={{ minWidth: '85px' }}
type="submit"
text="Refund"
/>

View File

@@ -28,6 +28,7 @@ import {
compose,
} from 'utils';
import { useAutofocus } from 'hooks';
import { ACCOUNT_TYPE } from 'common/accountTypes';
import { useRefundVendorCreditContext } from './RefundVendorCreditFormProvider';
import withSettings from 'containers/Settings/withSettings';
@@ -138,6 +139,11 @@ function RefundVendorCreditFormFields() {
inputProps={{
placeholder: intl.get('select_account'),
}}
filterByTypes={[
ACCOUNT_TYPE.BANK,
ACCOUNT_TYPE.CASH,
ACCOUNT_TYPE.FIXED_ASSET,
]}
/>
</FormGroup>
)}