BIG-70: fix receipt_number & reference_no in receipt detail.

This commit is contained in:
elforjani3
2021-09-13 18:11:46 +02:00
parent bffc50a492
commit 01368dc78b
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ export default function ReceiptDetailHeader() {
</DetailItem>
<DetailItem
label={intl.get('receipt.details.receipt_number')}
children={defaultTo(receipt.receipt_no, '-')}
children={defaultTo(receipt.receipt_number, '-')}
/>
<DetailItem
label={intl.get('customer_name')}

View File

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