From b792b21ac2c0705b15cbc973f535b0aa40f828fe Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 21 Jul 2023 09:14:08 -0400 Subject: [PATCH 1/4] CSR-1552 removing code related to defect. Possibly working as designed --- src/layouts/quote/quote.vue | 2 +- src/mixins/vehicle-questions-mixin.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index b2cd74cd5..1e78647dc 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -150,7 +150,7 @@ export default { (store.getters.order.damage.isRepair || (store.getters.order.lineItems?.glassParts != null && store.getters.order.lineItems.glassParts.length > 0)) && - !store.getters.payment.insuranceCoverage.isVerified + store.getters.order.referralNumber?.length !== 6 ); }, getDefaultIsInsuranceSelectedValue(availableLineItems) { diff --git a/src/mixins/vehicle-questions-mixin.js b/src/mixins/vehicle-questions-mixin.js index 4a0c49c81..4b05067ea 100644 --- a/src/mixins/vehicle-questions-mixin.js +++ b/src/mixins/vehicle-questions-mixin.js @@ -446,7 +446,9 @@ export default { const payment = store.getters.payment; - if (payment.isInsurance && payment.insuranceCoverage.isVerified) { + if (store.getters.order.referralNumber?.length === 6) { + navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal }); + } else if (payment.isInsurance && payment.insuranceCoverage.isVerified) { navigateToHeritageFunnel({ loadingModal: self.$refs.loadingModal }); } else { self.$router.navigateWithSaving( From 2e8be9171cf85a076f9ffa9777cec2acb139faea Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 24 Jul 2023 10:00:44 -0400 Subject: [PATCH 2/4] CSR-1573 a few non C&C clients required last 5 of vin. when they return to NextGen navigation breaks because of vin validation --- src/layouts/vehicle-damage/vehicle-damage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index ae89a61e6..dde00cb9a 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -360,7 +360,7 @@ export default { } } // If vin already exists, navigate directly to vin-lookup - else if (store.getters.vehicle.vin) { + else if (store.getters.vehicle.vin && store.getters.vehicle.vin.length === 17) { this.$router.navigateWithSaving( this.navigationScenarios.CLICKED_FORWARD_WITH_VIN, this.$route From 36ceebb725294b84beb2d7af5f3bc53c6d7c12ba Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 24 Jul 2023 11:17:50 -0400 Subject: [PATCH 3/4] CSR-1573 backout previous change and use vee validate to accomodate the defect --- src/layouts/vehicle-damage/vehicle-damage.vue | 2 +- src/layouts/vin-lookup/vin-lookup.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index dde00cb9a..ae89a61e6 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -360,7 +360,7 @@ export default { } } // If vin already exists, navigate directly to vin-lookup - else if (store.getters.vehicle.vin && store.getters.vehicle.vin.length === 17) { + else if (store.getters.vehicle.vin) { this.$router.navigateWithSaving( this.navigationScenarios.CLICKED_FORWARD_WITH_VIN, this.$route diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index a6b902c09..96c4ffb90 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -15,7 +15,7 @@ v-model="vin" customInputId="vin" isRequired - validationRules="vin-required|vin-format" + :validationRules="!vinPopulatedOnPageLoad ? 'vin-required|vin-format' : ''" :isDisabled="vinPopulatedOnPageLoad" maxLength="17" :mask="vinMask" From 4c841a52ba86ac57eb027f1ebbf68649f33a0abf Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 24 Jul 2023 11:35:09 -0400 Subject: [PATCH 4/4] CSR-1573 --- src/layouts/vin-lookup/vin-lookup.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/vin-lookup/vin-lookup.vue b/src/layouts/vin-lookup/vin-lookup.vue index 96c4ffb90..faf978f92 100644 --- a/src/layouts/vin-lookup/vin-lookup.vue +++ b/src/layouts/vin-lookup/vin-lookup.vue @@ -15,7 +15,9 @@ v-model="vin" customInputId="vin" isRequired - :validationRules="!vinPopulatedOnPageLoad ? 'vin-required|vin-format' : ''" + :validationRules=" + !vinPopulatedOnPageLoad ? 'vin-required|vin-format' : '' + " :isDisabled="vinPopulatedOnPageLoad" maxLength="17" :mask="vinMask"