Skip to content

Commit

Permalink
fix(InvoicePage): check for amountDue
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Jul 17, 2024
1 parent dd41fba commit 995e3ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/app/src/pages/InvoicePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
v-if="
invoice &&
[InvoiceStatus.OPEN, InvoiceStatus.BILL].includes(invoice.status) &&
invoice.amountPaid
? invoice.amountPaid < invoice.totalIncludingTax
: true
invoice.amountDue
"
icon="payment"
:label="lang.payment.pay"
Expand Down Expand Up @@ -54,7 +52,7 @@

<div v-if="invoice" class="column items-center">
<div class="col">
<div v-if="invoice.amountDue" class="text-center no-print">
<div v-if="invoice.amountDue > 0" class="text-center no-print">
{{ lang.payment.amountDue }}:
<price
:model-value="invoice.amountDue"
Expand Down

0 comments on commit 995e3ca

Please sign in to comment.