Resolve error thrown when entering payment from accounting menu.
This commit is contained in:
@@ -178,21 +178,24 @@ function PaymentModalContainer({
|
|||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Space>
|
{!context || (context && !context.id) ? null : (
|
||||||
<PaymentReexportButton payment={context} refetch={actions.refetch} />
|
<Space>
|
||||||
<PaymentMarkForExportButton
|
<PaymentReexportButton payment={context} refetch={actions.refetch} />
|
||||||
bodyshop={bodyshop}
|
<PaymentMarkForExportButton
|
||||||
payment={context}
|
bodyshop={bodyshop}
|
||||||
refetch={actions.refetch}
|
payment={context}
|
||||||
/>
|
refetch={actions.refetch}
|
||||||
</Space>
|
/>
|
||||||
|
</Space>
|
||||||
|
)}
|
||||||
|
|
||||||
<Form
|
<Form
|
||||||
onFinish={handleFinish}
|
onFinish={handleFinish}
|
||||||
autoComplete={"off"}
|
autoComplete={"off"}
|
||||||
form={form}
|
form={form}
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
initialValues={context || {}}
|
initialValues={context || {}}
|
||||||
disabled={context.exportedat}
|
disabled={context?.exportedat}
|
||||||
>
|
>
|
||||||
<PaymentForm form={form} />
|
<PaymentForm form={form} />
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
Reference in New Issue
Block a user