Skip to content

Commit

Permalink
Merge pull request #2138 from Civolilah/bugfix/1754-negative-invoice
Browse files Browse the repository at this point in the history
[Bugfix] Negative Invoice Validation Message | Payments
  • Loading branch information
beganovich authored Oct 21, 2024
2 parents a3da5c2 + d079c09 commit 41841c7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pages/payments/create/Create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,14 @@ export default function Create() {
</Element>
)}

{errors?.errors.invoices && (
<div className="px-6">
<Alert className="mt-2" type="danger">
{errors?.errors.invoices}
</Alert>
</div>
)}

{payment?.client_id && <Divider />}

{payment &&
Expand Down Expand Up @@ -490,6 +498,14 @@ export default function Create() {
</Element>
)}

{errors?.errors.credits && (
<div className="px-6">
<Alert className="mt-2" type="danger">
{errors?.errors.credits}
</Alert>
</div>
)}

{payment?.client_id && <Divider />}

<Element leftSide={t('payment_date')}>
Expand Down

0 comments on commit 41841c7

Please sign in to comment.