From 475d2f21eda7a4e2673df4e0a281bb1e02ff68ab Mon Sep 17 00:00:00 2001 From: CarlNation Date: Wed, 8 Mar 2023 12:48:13 -0500 Subject: [PATCH] CSR-785 rename cash_account to cash_parent_account --- src/constants/application-config.js | 2 +- src/layouts/quote/quote.spec.js | 4 ++-- src/layouts/quote/quote.vue | 4 ++-- src/store/index.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/constants/application-config.js b/src/constants/application-config.js index 550112bcc..4c5305783 100644 --- a/src/constants/application-config.js +++ b/src/constants/application-config.js @@ -9,7 +9,7 @@ const applicationConfig = { APPLICATION_ABBREVIATION: "fmg", PAGE_QUERYSTRING: "fmgPage", SITE_ENTRY_TRIGGER_VALUE: "FixMyGlass", - CASH_ACCOUNT_NUMBER: 167132, + CASH_PARENT_ACCOUNT_NUMBER: 167132, }; export { applicationConfig }; diff --git a/src/layouts/quote/quote.spec.js b/src/layouts/quote/quote.spec.js index 3d0f5baba..099a3778e 100644 --- a/src/layouts/quote/quote.spec.js +++ b/src/layouts/quote/quote.spec.js @@ -66,7 +66,7 @@ store.getters = { payment: { insuranceCoverage: {}, isInsurance: false, - parentAccountNumber: applicationConfig.CASH_ACCOUNT_NUMBER, + parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER, }, }, }; @@ -76,7 +76,7 @@ afterEach(() => { store.getters = { order: { payment: { - parentAccountNumber: applicationConfig.CASH_ACCOUNT_NUMBER, + parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER, }, }, payment: { diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 8a27e26e0..06b8ecb9a 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -185,14 +185,14 @@ export default { if (!this.isInsuranceSelected) { this.dispatchStoreAction( this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER, - applicationConfig.CASH_ACCOUNT_NUMBER, + applicationConfig.CASH_PARENT_ACCOUNT_NUMBER, false ); } if ( this.$store.getters.order.payment.parentAccountNumber != - applicationConfig.CASH_ACCOUNT_NUMBER + applicationConfig.CASH_PARENT_ACCOUNT_NUMBER ) { this.supportingItems = this.filterOutFees(this.supportingItems); } diff --git a/src/store/index.js b/src/store/index.js index 45f9d92fe..3793111ae 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -934,7 +934,7 @@ export const actions = { payload: { carId: carId, serviceType: isRepair ? "Repair" : "Replace", - parentAccountNumber: applicationConfig.CASH_ACCOUNT_NUMBER, + parentAccountNumber: applicationConfig.CASH_PARENT_ACCOUNT_NUMBER, parts: glassPartsArray, numberOfRepairChips: isRepair ? numberOfChips : 0, }, @@ -1443,7 +1443,7 @@ export const actions = { const vehicle = context.getters.order.vehicle; let queryString = - `ParentAccountNumber=${applicationConfig.CASH_ACCOUNT_NUMBER}` + + `ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` + `&CTU=${ctuToUse}` + `&CarId=${vehicle.carId}` + `&Make=${vehicle.make}` +