fix(inventoryAd): fix adjustment reason field.

This commit is contained in:
elforjani3
2021-03-15 14:56:18 +02:00
parent 63282fe256
commit f075f9b343

View File

@@ -118,7 +118,7 @@ export default function InventoryAdjustmentFormDialogFields() {
label={<T id={'adjustment_account'} />} label={<T id={'adjustment_account'} />}
labelInfo={<FieldRequiredHint />} labelInfo={<FieldRequiredHint />}
intent={inputIntent({ error, touched })} intent={inputIntent({ error, touched })}
helperText={<ErrorMessage name="reason" />} helperText={<ErrorMessage name="adjustment_account_id" />}
className={'form-group--adjustment-account'} className={'form-group--adjustment-account'}
> >
<AccountsSuggestField <AccountsSuggestField
@@ -150,14 +150,14 @@ export default function InventoryAdjustmentFormDialogFields() {
)} )}
</FastField> </FastField>
{/*------------ description -----------*/} {/*------------ Adjustment reasons -----------*/}
<FastField name={'reason'}> <FastField name={'reason'}>
{({ field, meta: { error, touched } }) => ( {({ field, meta: { error, touched } }) => (
<FormGroup <FormGroup
label={<T id={'adjustment_reasons'} />} label={<T id={'adjustment_reasons'} />}
className={'form-group--adjustment-reasons'} className={'form-group--adjustment-reasons'}
intent={inputIntent({ error, touched })} intent={inputIntent({ error, touched })}
helperText={<ErrorMessage name={'adjustment_reasons'} />} helperText={<ErrorMessage name={'reason'} />}
> >
<TextArea growVertically={true} large={true} {...field} /> <TextArea growVertically={true} large={true} {...field} />
</FormGroup> </FormGroup>