From deed0dfb5f1235847704fdbdb4893bab922c7732 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 30 Oct 2023 16:03:03 -0400 Subject: [PATCH] CSR-1392 set amount due for PIA --- src/constants/store-actions.js | 2 +- src/layouts/payment-method/payment-method.vue | 5 +++-- src/layouts/quote/quote.vue | 2 +- src/store/index.js | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index bb2ef16a0..847b14477 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -73,7 +73,7 @@ const storeActions = { SAVE_VIN: "saveVin", SAVE_REGISTRATION_ADDRESS_LOOKUP: "saveRegistrationAddressLookup", SAVE_GLASS_PARTS: "saveGlassParts", - SAVE_GLASS_PART_PRICES: "saveGlassPartPrices", + SAVE_GLASS_PARTS_SUPPRESSING_STATE_RESETTING: "saveGlassPartsSuppressingStateResetting", SAVE_PART_QUESTION_ANSWERS: "savePartQuestionAnswers", RESET_MOLDING_AND_CAPABILITY_QUESTIONS_IF_NEEDED: "resetMoldingAndCapabilityQuestionAnswersIfNeeded", diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index aa82ecaf1..b147ec73f 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -271,12 +271,13 @@ export default { // save lineitems as they now have salestax added await this.dispatchStoreAction( - storeActions.SAVE_GLASS_PARTS, + storeActions.SAVE_GLASS_PARTS_SUPPRESSING_STATE_RESETTING, this.lineItems.glassParts, false ); + await this.dispatchStoreAction( - storeActions.SAVE_SUPPORTING_ITEMS, + storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING, this.lineItems.supportingItems, false ); diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 42916b47f..507532f4e 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -258,7 +258,7 @@ export default { if (this.pricedGlassParts.length > 0) { this.dispatchStoreAction( - this.storeActions.SAVE_GLASS_PART_PRICES, + this.storeActions.SAVE_GLASS_PARTS_SUPPRESSING_STATE_RESETTING, this.pricedGlassParts, false ); diff --git a/src/store/index.js b/src/store/index.js index 0e556059d..ab877f2b1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2381,7 +2381,7 @@ export const actions = { context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); }, - saveGlassPartPrices(context, parts) { + saveGlassPartsSuppressingStateResetting(context, parts) { context.commit(storeMutations.UPDATE_GLASS_PARTS, parts); },