mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix(inventoryAd): fix adjustment reason field.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user