From 2a7e7aed82b04fc8bb15160c1dca73886df84415 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Tue, 6 Aug 2024 10:42:46 -0700 Subject: [PATCH] Small tweak for EFT unlocking (#2947) --- auth-web/package-lock.json | 4 ++-- auth-web/package.json | 2 +- .../auth/account-freeze/AccountFreezeUnlockView.vue | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index ba00409aa2..449601c593 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.6.59", + "version": "2.6.60", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.6.59", + "version": "2.6.60", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index 222f7365cf..439082c52b 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.6.59", + "version": "2.6.60", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/views/auth/account-freeze/AccountFreezeUnlockView.vue b/auth-web/src/views/auth/account-freeze/AccountFreezeUnlockView.vue index 78af5e59e5..b4d0ec490f 100644 --- a/auth-web/src/views/auth/account-freeze/AccountFreezeUnlockView.vue +++ b/auth-web/src/views/auth/account-freeze/AccountFreezeUnlockView.vue @@ -156,7 +156,7 @@ export default defineComponent({ ModalDialog }, setup (props, { root }) { - const { createAccountPayment, getOrgPayments } = useOrgStore() + const { createAccountPayment, createOutstandingAccountPayment, getOrgPayments } = useOrgStore() const { currentOrganization } = storeToRefs(useOrgStore()) const errorDialog = ref(null) const stepper = ref(null) @@ -180,7 +180,12 @@ export default defineComponent({ }) async function unlockAccount () { - const payment = await createAccountPayment() + let payment + if (state.hasEFTPaymentMethod) { + payment = await createOutstandingAccountPayment() + } else { + payment = await createAccountPayment() + } const baseUrl = ConfigHelper.getAuthContextPath() const returnUrl = `${baseUrl}/${Pages.ACCOUNT_UNLOCK_SUCCESS}` const encodedUrl = encodeURIComponent(returnUrl)