Skip to content

Commit

Permalink
feat: disable bank transfer payment for bills
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Aug 22, 2024
1 parent 3db30ac commit cc5af31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/app/src/pages/InvoicePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
</q-item-section>
</q-item>
<q-item
v-if="configuration.PAYMENT_HANDLERS.bankTransfer"
v-if="
configuration.PAYMENT_HANDLERS.bankTransfer &&
invoice.status === InvoiceStatus.OPEN
"
clickable
@click="openBankTransferDialog"
>
Expand Down Expand Up @@ -366,7 +369,7 @@ const onResize: InstanceType<typeof QResizeObserver>['$props']['onResize'] = (
}
const format = (value: number) =>
Intl.NumberFormat($q.lang.isoName, {
Intl.NumberFormat(invoice.value?.locale || $q.lang.isoName, {
maximumFractionDigits: 2,
style: 'currency',
currency: invoice.value?.currency
Expand Down

0 comments on commit cc5af31

Please sign in to comment.