CSR-2362 quickquote leadgen fails returning from heritage

CSR-2362 quickquote leadgen fails returning from heritage.  This is because the router clears specific information if there is an inactive external parameter indicating that they have been through the flow already.  This handles when they click back in a browser back to the content site.  If they are returning from heritage skip this step.
This commit is contained in:
CarlNation 2024-11-11 14:13:55 -05:00
parent 8ff8d96dd9
commit d93289ba20
2 changed files with 17 additions and 16 deletions

View file

@ -389,14 +389,13 @@ export default {
) { ) {
return true; return true;
} else { } else {
console.log( // prettier-ignore
"ins: servce-location invalid prereq:" + {
store.getters.payment.parentAccountNumber + console.log(new Date() + "Insurance: servce-location invalid prereqs");
":" + console.log(new Date() + "store.getters.payment.parentAccountNumber:" + store.getters.payment.parentAccountNumber);
store.getters.order.policy.policyNumber + console.log(new Date() + "store.getters.order.policy.policyNumber:" + store.getters.order.policy.policyNumber);
":" + console.log(new Date() + "store.getters.order.serviceLocation.zipCode:" + store.getters.order.serviceLocation.zipCode);
store.getters.order.serviceLocation.zipCode }
);
return false; return false;
} }
} else { } else {
@ -406,12 +405,12 @@ export default {
) { ) {
return true; return true;
} else { } else {
console.log( // prettier-ignore
"cash: servce-location invalid prereq:" + {
JSON.stringify(store.getters.lineItems.supportingItems) + console.log(new Date() + "Cash: servce-location invalid prereqs");
":" + console.log(new Date() + "store.getters.lineItems.supportingItems:" + JSON.stringify(store.getters.lineItems.supportingItems));
store.getters.order.serviceLocation.zipCode console.log(new Date() + "store.getters.order.serviceLocation.zipCode:" + store.getters.order.serviceLocation.zipCode);
); }
return false; return false;
} }
} }

View file

@ -113,8 +113,10 @@ const routes = [
to.query.fmgPage to.query.fmgPage
); );
//Update external parameter state //Update external parameter state but not when returning from heritage
updateExternalParameterState(); if (!to.query.fmgPage?.startsWith("service-location")) {
updateExternalParameterState();
}
// clear part related state because heritage selected a new vehicle // clear part related state because heritage selected a new vehicle
if ( if (