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);
|
||||
|
||||
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() {
|
||||
|
|
|
|||
|
|
@ -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`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue