Skip to content

Commit

Permalink
Statement Owing: Set default amount owing to -1, then render when it'…
Browse files Browse the repository at this point in the history
…s 0 or above. (#3173)
  • Loading branch information
seeker25 authored Dec 9, 2024
1 parent a145bea commit 30e0d08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.122",
"version": "2.6.123",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Settings
</v-btn>
</header>
<template v-if="enableEFTPaymentMethod && hasEFTPaymentMethod">
<template v-if="enableEFTPaymentMethod && hasEFTPaymentMethod && paymentOwingAmount >= 0">
<div
class="statement-owing d-flex flex-wrap flex-row mb-2"
>
Expand Down Expand Up @@ -226,7 +226,7 @@ export default defineComponent({
isDataLoading: false,
statementsList: [],
isLoading: false,
paymentOwingAmount: 0,
paymentOwingAmount: -1,
paymentDueDate: null,
shortNameLinksCount: 0,
isEftUnderPayment: false,
Expand Down Expand Up @@ -350,10 +350,11 @@ export default defineComponent({
// redirect to account info if its a basic account
root.$router.push(`/${Pages.MAIN}/${currentOrganization.id}/settings/account-info`)
} else {
await loadStatementsList()
const promises = [loadStatementsList()]
if (state.hasEFTPaymentMethod) {
await getStatementsSummary()
promises.push(getStatementsSummary())
}
await Promise.all(promises)
}
}
Expand Down

0 comments on commit 30e0d08

Please sign in to comment.