Merge branch 'develop' into feature/CSR-2489
This commit is contained in:
commit
2ce5ba89dc
4 changed files with 21 additions and 7 deletions
|
|
@ -231,6 +231,11 @@ export default {
|
||||||
|
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
|
||||||
|
if (!resultMap.registrationZipValidationResponse.isValid) {
|
||||||
|
this.displayInvalidZipAlert = true;
|
||||||
|
return this.$refs.navbar.removeLoader();
|
||||||
|
}
|
||||||
|
|
||||||
// Lookup vin
|
// Lookup vin
|
||||||
const vinLookup = await this.lookupVin(
|
const vinLookup = await this.lookupVin(
|
||||||
this.licensePlate,
|
this.licensePlate,
|
||||||
|
|
@ -251,7 +256,6 @@ export default {
|
||||||
this.displayInvalidZipAlert = true;
|
this.displayInvalidZipAlert = true;
|
||||||
return this.$refs.navbar.removeLoader();
|
return this.$refs.navbar.removeLoader();
|
||||||
}
|
}
|
||||||
this.displayInvalidZipAlert = false;
|
|
||||||
|
|
||||||
// Check if the CarId has changed.
|
// Check if the CarId has changed.
|
||||||
this.isCarIdDifferent =
|
this.isCarIdDifferent =
|
||||||
|
|
@ -346,6 +350,7 @@ export default {
|
||||||
this.displayNonServiceableZipAlert = false;
|
this.displayNonServiceableZipAlert = false;
|
||||||
this.displayMatchedDifferentVehicleAlert = false;
|
this.displayMatchedDifferentVehicleAlert = false;
|
||||||
this.displayVinLookupByHomeAddressNotAllowedAlert = false;
|
this.displayVinLookupByHomeAddressNotAllowedAlert = false;
|
||||||
|
this.displayInvalidZipAlert = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
||||||
|
|
@ -604,7 +604,10 @@ export default {
|
||||||
|
|
||||||
cartItems.forEach((item) => {
|
cartItems.forEach((item) => {
|
||||||
if (item.name !== null && item.category != "promos") {
|
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`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -693,10 +693,6 @@ export const mutations = {
|
||||||
!sessionInformation.order.payment.isInsurance &&
|
!sessionInformation.order.payment.isInsurance &&
|
||||||
!sessionInformation.order.serviceLocation.provider?.providerNumber
|
!sessionInformation.order.serviceLocation.provider?.providerNumber
|
||||||
) {
|
) {
|
||||||
console.log(
|
|
||||||
"------------- updateStateWithOrderInformation reset isInsurance -----------------"
|
|
||||||
);
|
|
||||||
console.log(new Date() + " sessionInformation: " + JSON.stringify(sessionInformation));
|
|
||||||
state.order.payment.isInsurance = null;
|
state.order.payment.isInsurance = null;
|
||||||
} else {
|
} else {
|
||||||
state.order.payment.isInsurance = sessionInformation.order.payment.isInsurance;
|
state.order.payment.isInsurance = sessionInformation.order.payment.isInsurance;
|
||||||
|
|
@ -2104,6 +2100,13 @@ export const actions = {
|
||||||
) {
|
) {
|
||||||
const order = context.state.order;
|
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
|
return globalMethods
|
||||||
.callHttpClient({
|
.callHttpClient({
|
||||||
method: endpoints.LoadSession.method,
|
method: endpoints.LoadSession.method,
|
||||||
|
|
@ -2111,7 +2114,7 @@ export const actions = {
|
||||||
payload: {
|
payload: {
|
||||||
savedSessionId: savedSessionId?.toString(),
|
savedSessionId: savedSessionId?.toString(),
|
||||||
referralNumber: referralNumber?.toString(),
|
referralNumber: referralNumber?.toString(),
|
||||||
referralDate: referralDate?.toString(),
|
referralDate: loadDate,
|
||||||
parentAccountNumber: parentAccountNumber?.toString(),
|
parentAccountNumber: parentAccountNumber?.toString(),
|
||||||
referralCorrelationId: referralCorrelationId,
|
referralCorrelationId: referralCorrelationId,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -784,6 +784,7 @@ describe("Actions", () => {
|
||||||
const response = await actions.loadSession(context, {
|
const response = await actions.loadSession(context, {
|
||||||
payload: {
|
payload: {
|
||||||
savedSessionId: "",
|
savedSessionId: "",
|
||||||
|
referralDate: "2024-12-11T00:29:41.967",
|
||||||
},
|
},
|
||||||
pageNameToLog: "test",
|
pageNameToLog: "test",
|
||||||
});
|
});
|
||||||
|
|
@ -813,6 +814,7 @@ describe("Actions", () => {
|
||||||
const response = await actions.loadSession(context, {
|
const response = await actions.loadSession(context, {
|
||||||
payload: {
|
payload: {
|
||||||
savedSessionId: "",
|
savedSessionId: "",
|
||||||
|
referralDate: "2024-12-11T00:29:41.967",
|
||||||
},
|
},
|
||||||
pageNameToLog: "test",
|
pageNameToLog: "test",
|
||||||
});
|
});
|
||||||
|
|
@ -841,6 +843,7 @@ describe("Actions", () => {
|
||||||
const response = await actions.loadSession(context, {
|
const response = await actions.loadSession(context, {
|
||||||
payload: {
|
payload: {
|
||||||
savedSessionId: "",
|
savedSessionId: "",
|
||||||
|
referralDate: "2024-12-11T00:29:41.967",
|
||||||
},
|
},
|
||||||
pageNameToLog: "test",
|
pageNameToLog: "test",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue