Merge pull request #3170 from Safelite/nation/CASH-2570
CASH-2570 unverified message incorrectly showing
This commit is contained in:
commit
8529a03c32
5 changed files with 29 additions and 2 deletions
|
|
@ -123,6 +123,7 @@ const storeActions = {
|
||||||
|
|
||||||
CREATE_SUBMITTED_STATE: "createSubmittedState",
|
CREATE_SUBMITTED_STATE: "createSubmittedState",
|
||||||
RESET_SUBMITTED_STATE: "resetSubmittedState",
|
RESET_SUBMITTED_STATE: "resetSubmittedState",
|
||||||
|
RESET_INSURANCE_DETAILS: "resetInsuranceDetails",
|
||||||
ADD_DONATION_TO_SUBMITTED_STATE: "addDonationToSubmittedState",
|
ADD_DONATION_TO_SUBMITTED_STATE: "addDonationToSubmittedState",
|
||||||
RESET_EXTERNAL_PARAMETER_STATE: "resetExternalParameterState",
|
RESET_EXTERNAL_PARAMETER_STATE: "resetExternalParameterState",
|
||||||
UPDATE_EXTERNAL_PARAMETER_MMS: "updateExternalParameterMMS",
|
UPDATE_EXTERNAL_PARAMETER_MMS: "updateExternalParameterMMS",
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ const storeMutations = {
|
||||||
RESET_SERVICE_LOCATION_MOBILE_ADDRESS: "resetServiceLocationMobileAddress",
|
RESET_SERVICE_LOCATION_MOBILE_ADDRESS: "resetServiceLocationMobileAddress",
|
||||||
RESET_SCHEDULE: "resetSchedule",
|
RESET_SCHEDULE: "resetSchedule",
|
||||||
RESET_PAYMENT_METHOD_CHOICE: "resetPaymentMethodChoice",
|
RESET_PAYMENT_METHOD_CHOICE: "resetPaymentMethodChoice",
|
||||||
|
RESET_INSURANCE_DETAILS: "resetInsuranceDetails",
|
||||||
|
|
||||||
// OTHER MUTATIONS
|
// OTHER MUTATIONS
|
||||||
UPDATE_PAGE_DATA: "updatePageData",
|
UPDATE_PAGE_DATA: "updatePageData",
|
||||||
|
|
|
||||||
|
|
@ -834,11 +834,12 @@ export default {
|
||||||
return getBoolFromString(this.$route?.query?.piaError);
|
return getBoolFromString(this.$route?.query?.piaError);
|
||||||
},
|
},
|
||||||
shouldDisplayUnverifiedInsuranceAlert() {
|
shouldDisplayUnverifiedInsuranceAlert() {
|
||||||
const shouldDisplayUnverifiedDeduct = experimentMixin.methods.hasSettingEqualTo(
|
const hasExperimentSetting = experimentMixin.methods.hasSettingEqualTo(
|
||||||
experimentSettings.SHOW_UNVERIFIED_DEDUCT_ENTRY,
|
experimentSettings.SHOW_UNVERIFIED_DEDUCT_ENTRY,
|
||||||
"true"
|
"true"
|
||||||
);
|
);
|
||||||
return shouldDisplayUnverifiedDeduct;
|
|
||||||
|
return hasExperimentSetting && this.isInsurance;
|
||||||
},
|
},
|
||||||
// Necessary to make the watcher of lineItems work
|
// Necessary to make the watcher of lineItems work
|
||||||
// JavaScript does not keep a record of the old value, only a reference to it's location in the memory.
|
// JavaScript does not keep a record of the old value, only a reference to it's location in the memory.
|
||||||
|
|
|
||||||
|
|
@ -799,6 +799,7 @@ export default {
|
||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
this.dispatchStoreAction(this.storeActions.RESET_INSURANCE_DETAILS, false, false);
|
||||||
this.dispatchStoreAction(this.storeActions.SAVE_CAN_SCHEDULE_ONLINE, false, false);
|
this.dispatchStoreAction(this.storeActions.SAVE_CAN_SCHEDULE_ONLINE, false, false);
|
||||||
this.dispatchStoreAction(this.storeActions.SAVE_ACCOUNT_NAME, null, false);
|
this.dispatchStoreAction(this.storeActions.SAVE_ACCOUNT_NAME, null, false);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -374,6 +374,26 @@ export const mutations = {
|
||||||
updateIsInsurance(state, isInsurance) {
|
updateIsInsurance(state, isInsurance) {
|
||||||
state.order.payment.isInsurance = isInsurance;
|
state.order.payment.isInsurance = isInsurance;
|
||||||
},
|
},
|
||||||
|
resetInsuranceDetails(state) {
|
||||||
|
state.order.payment.insuranceCoverage = {
|
||||||
|
isVerified: null,
|
||||||
|
coverageStatus: null,
|
||||||
|
coverageSubStatus: null,
|
||||||
|
coverageType: null,
|
||||||
|
coverageVerificationType: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
state.order.policy.policyNumber = null;
|
||||||
|
state.order.policy.claimNumber = null;
|
||||||
|
state.order.policy.insuranceCompanyName = null;
|
||||||
|
state.order.policy.streetAddress = null;
|
||||||
|
state.order.policy.apartment = null;
|
||||||
|
state.order.policy.city = null;
|
||||||
|
state.order.policy.state = null;
|
||||||
|
state.order.policy.zipCode = null;
|
||||||
|
state.order.damage.dateOfLoss = null;
|
||||||
|
state.order.damage.damageCause = null;
|
||||||
|
},
|
||||||
updateIsPia(state, isPia) {
|
updateIsPia(state, isPia) {
|
||||||
state.order.payment.isPia = isPia;
|
state.order.payment.isPia = isPia;
|
||||||
},
|
},
|
||||||
|
|
@ -3116,6 +3136,9 @@ export const actions = {
|
||||||
saveBillToAccountNumber(context, billToAccountNumber) {
|
saveBillToAccountNumber(context, billToAccountNumber) {
|
||||||
context.commit(storeMutations.UPDATE_BILL_TO_ACCT_NUMBER, billToAccountNumber);
|
context.commit(storeMutations.UPDATE_BILL_TO_ACCT_NUMBER, billToAccountNumber);
|
||||||
},
|
},
|
||||||
|
resetInsuranceDetails(context) {
|
||||||
|
context.commit(storeMutations.RESET_INSURANCE_DETAILS);
|
||||||
|
},
|
||||||
|
|
||||||
saveSupportingItems(context, supportingItems) {
|
saveSupportingItems(context, supportingItems) {
|
||||||
syncLineItemIds(supportingItems, context.state.order.lineItems.supportingItems);
|
syncLineItemIds(supportingItems, context.state.order.lineItems.supportingItems);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue