Merged in release/2023-05-26 (pull request #822)

Resolve error thrown when entering payment from accounting menu.
This commit is contained in:
Patrick Fic
2023-05-26 21:57:56 +00:00

View File

@@ -178,6 +178,7 @@ function PaymentModalContainer({
</span>
}
>
{!context || (context && !context.id) ? null : (
<Space>
<PaymentReexportButton payment={context} refetch={actions.refetch} />
<PaymentMarkForExportButton
@@ -186,13 +187,15 @@ function PaymentModalContainer({
refetch={actions.refetch}
/>
</Space>
)}
<Form
onFinish={handleFinish}
autoComplete={"off"}
form={form}
layout="vertical"
initialValues={context || {}}
disabled={context.exportedat}
disabled={context?.exportedat}
>
<PaymentForm form={form} />
</Form>