diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue
index 43b471e81..2a6119681 100644
--- a/src/common-components/funnel-footer/funnel-footer.vue
+++ b/src/common-components/funnel-footer/funnel-footer.vue
@@ -15,10 +15,6 @@
data-bs-target="#footerModal"
data-bs-dismiss="modal" />
-
-
-
-
handleTempButtonClicked(this)"
@back-click="navigateBack"
@ForwardClicked="forwardButtonAction" />
@@ -189,10 +188,8 @@ export default {
false
);
- // TODO KO delete after quote MVP
- this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote);
// Navigate to the next page
- // this.navigateForward(matchedParts);
+ this.navigateForward(matchedParts);
},
LoadInitialPartsData() {
diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue
index c2955e36f..bba6cbcf3 100644
--- a/src/layouts/vin-lookup/vin-lookup.vue
+++ b/src/layouts/vin-lookup/vin-lookup.vue
@@ -100,7 +100,6 @@
cmsWidgetName="FunnelFooterWidget"
ref="funnelFooter"
:isForwardActionDisabled="!meta.valid"
- @tempButtonClicked="() => handleTempButtonClicked(this)"
@back-clicked="backButtonAction"
@ForwardClicked="forwardButtonAction" />
diff --git a/src/mixins/vehicle-questions-mixin.js b/src/mixins/vehicle-questions-mixin.js
index 75f042ff4..bef4f6545 100644
--- a/src/mixins/vehicle-questions-mixin.js
+++ b/src/mixins/vehicle-questions-mixin.js
@@ -7,12 +7,6 @@ import baseMixin from "@/mixins/base-mixin.js";
import store from "@/store";
export default {
- data() {
- // TODO KO DELETE AFTER QUOTE MVP
- return {
- shouldGoToHeritageQuote: false,
- };
- },
methods: {
hasPartQuestions(partsOrQuestions) {
return partsOrQuestions?.some((pq) => pq.partQuestions?.length > 0);
@@ -353,9 +347,8 @@ export default {
}
}
},
- // TODO KO Delete `shouldGoToHeritageQuote`
// Can't use `this` because navigateForward is also called from vin-pages-mixin
- async navigateForward(partsOrQuestions, vm, shouldGoToHeritageQuote) {
+ async navigateForward(partsOrQuestions, vm) {
const self = vm ?? this;
const currentPage = self.$route.query.fmgPage;
@@ -450,13 +443,15 @@ export default {
self.$store.commit(storeMutations.UPDATE_GLASS_PARTS, collectedGlassParts);
const payment = store.getters.payment;
- shouldGoToHeritageQuote ||
- (payment.isInsurance && payment.insuranceCoverage.isVerified)
- ? navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal })
- : self.$router.navigateWithSaving(
- self.navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS,
- self.$route
- );
+
+ if (payment.isInsurance && payment.insuranceCoverage.isVerified) {
+ navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal });
+ } else {
+ self.$router.navigateWithSaving(
+ self.navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS,
+ self.$route
+ );
+ }
}
},
// Can't use `this` because navigateForward is also called from quote
@@ -530,9 +525,5 @@ export default {
self.$router.navigateWithoutSaving(backNavigationScenario, self.$route);
},
- // TODO KO delete this after quote mvp
- async handleTempButtonClicked(vm) {
- this.shouldGoToHeritageQuote = true;
- },
},
};
diff --git a/src/mixins/vin-pages-mixin.js b/src/mixins/vin-pages-mixin.js
index ca8c66369..e6e41aad5 100644
--- a/src/mixins/vin-pages-mixin.js
+++ b/src/mixins/vin-pages-mixin.js
@@ -4,12 +4,6 @@ import vehicleQuestionsMixin from "@/mixins/vehicle-questions-mixin";
import { saveSession } from "@/helpers/heritage-integration/order-helper.js";
export default {
- data() {
- // TODO KO DELETE AFTER QUOTE MVP
- return {
- shouldGoToHeritageQuote: false,
- };
- },
methods: {
async navigateForwardWithSingleCarMatch() {
// If we have not already saved a session, we need to save one now before the lengthy call to getPartsOrQuestions
@@ -20,17 +14,7 @@ export default {
const result = await this.dispatchStoreAction(storeActions.GET_PARTS_OR_QUESTIONS);
const partsOrQuestions = result.data.partsOrQuestions;
- // TODO KO delete `this.shouldGoToHeritageQuote`
- vehicleQuestionsMixin.methods.navigateForward(
- partsOrQuestions,
- this,
- this.shouldGoToHeritageQuote
- );
- },
- // TODO KO delete this after quote mvp
- async handleTempButtonClicked(vm) {
- this.shouldGoToHeritageQuote = true;
- await vm.forwardButtonAction();
+ vehicleQuestionsMixin.methods.navigateForward(partsOrQuestions, this);
},
},
};
diff --git a/src/store/index.js b/src/store/index.js
index ac0b7577c..8684f513a 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -904,14 +904,14 @@ export const actions = {
const carId = context.getters.vehicle.carId;
const isRepair = context.getters.damage.isRepair;
const numberOfChips = context.getters.damage.numberOfChips;
- const parentAccountNumber = context.getters.order.accountNumber.toString();
+
return globalMethods.callHttpClient({
method: endpoints.GetSupportingItems.method,
endpoint: endpoints.GetSupportingItems.url,
payload: {
carId: carId,
serviceType: isRepair ? "Repair" : "Replace",
- parentAccountNumber: parentAccountNumber,
+ parentAccountNumber: applicationConfig.CASH_ACCOUNT_NUMBER,
parts: glassPartsArray,
numberOfRepairChips: isRepair ? numberOfChips : 0,
},
@@ -1008,7 +1008,7 @@ export const actions = {
},
isInsurance: order.payment.isInsurance ?? false,
},
- accountNumber: order.accountNumber?.toString(),
+ accountNumber: order.accountNumber,
providerNumber: "",
serviceLocation: {
streetAddress: order.serviceLocation.address,