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

View file

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