fix(sale invoice): fix reference field.

This commit is contained in:
elforjani3
2021-03-11 18:00:48 +02:00
parent 59f8010122
commit 77968489b2

View File

@@ -146,14 +146,14 @@ function InvoiceFormHeaderFields({
</FastField> </FastField>
{/* ----------- Reference ----------- */} {/* ----------- Reference ----------- */}
<FastField name={'reference'}> <FastField name={'reference_no'}>
{({ field, meta: { error, touched } }) => ( {({ field, meta: { error, touched } }) => (
<FormGroup <FormGroup
label={<T id={'reference'} />} label={<T id={'reference'} />}
inline={true} inline={true}
className={classNames('form-group--reference', CLASSES.FILL)} className={classNames('form-group--reference', CLASSES.FILL)}
intent={inputIntent({ error, touched })} intent={inputIntent({ error, touched })}
helperText={<ErrorMessage name="reference" />} helperText={<ErrorMessage name="reference_no" />}
> >
<InputGroup minimal={true} {...field} /> <InputGroup minimal={true} {...field} />
</FormGroup> </FormGroup>