diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 2aba11db4..b374e8bb6 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -231,6 +231,11 @@ export default { const resultMap = await settleAllPromises(promiseResultMap); + if (!resultMap.registrationZipValidationResponse.isValid) { + this.displayInvalidZipAlert = true; + return this.$refs.navbar.removeLoader(); + } + // Lookup vin const vinLookup = await this.lookupVin( this.licensePlate, @@ -251,7 +256,6 @@ export default { this.displayInvalidZipAlert = true; return this.$refs.navbar.removeLoader(); } - this.displayInvalidZipAlert = false; // Check if the CarId has changed. this.isCarIdDifferent = @@ -346,6 +350,7 @@ export default { this.displayNonServiceableZipAlert = false; this.displayMatchedDifferentVehicleAlert = false; this.displayVinLookupByHomeAddressNotAllowedAlert = false; + this.displayInvalidZipAlert = false; }, }, mounted() { diff --git a/src/layouts/payment/payment.vue b/src/layouts/payment/payment.vue index 062f3c218..2fbe5ca6d 100644 --- a/src/layouts/payment/payment.vue +++ b/src/layouts/payment/payment.vue @@ -604,7 +604,10 @@ export default { cartItems.forEach((item) => { if (item.name !== null && item.category != "promos") { - lineItems.push(`${item.name}|${(item.salesTax + item.subTotal).toFixed(2)}|1`); + const total = (item.salesTax + item.subTotal).toFixed(2); + if (total > 0) { + lineItems.push(`${item.name}|${(item.salesTax + item.subTotal).toFixed(2)}|1`); + } } }); diff --git a/src/store/index.js b/src/store/index.js index 6a67a9bc7..d5fa1e0d9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -693,10 +693,6 @@ export const mutations = { !sessionInformation.order.payment.isInsurance && !sessionInformation.order.serviceLocation.provider?.providerNumber ) { - console.log( - "------------- updateStateWithOrderInformation reset isInsurance -----------------" - ); - console.log(new Date() + " sessionInformation: " + JSON.stringify(sessionInformation)); state.order.payment.isInsurance = null; } else { state.order.payment.isInsurance = sessionInformation.order.payment.isInsurance; @@ -2104,6 +2100,13 @@ export const actions = { ) { const order = context.state.order; + var dtParts = referralDate.split("-"); + const year = dtParts[0]; + const month = dtParts[1]; + const day = dtParts[2].substring(0, 2); + + const loadDate = `${year}-${month}-${day}`; + return globalMethods .callHttpClient({ method: endpoints.LoadSession.method, @@ -2111,7 +2114,7 @@ export const actions = { payload: { savedSessionId: savedSessionId?.toString(), referralNumber: referralNumber?.toString(), - referralDate: referralDate?.toString(), + referralDate: loadDate, parentAccountNumber: parentAccountNumber?.toString(), referralCorrelationId: referralCorrelationId, }, diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 094793bc1..69e2feb66 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -784,6 +784,7 @@ describe("Actions", () => { const response = await actions.loadSession(context, { payload: { savedSessionId: "", + referralDate: "2024-12-11T00:29:41.967", }, pageNameToLog: "test", }); @@ -813,6 +814,7 @@ describe("Actions", () => { const response = await actions.loadSession(context, { payload: { savedSessionId: "", + referralDate: "2024-12-11T00:29:41.967", }, pageNameToLog: "test", }); @@ -841,6 +843,7 @@ describe("Actions", () => { const response = await actions.loadSession(context, { payload: { savedSessionId: "", + referralDate: "2024-12-11T00:29:41.967", }, pageNameToLog: "test", });