CSR-2067 fix tests
This commit is contained in:
CarlNation 2024-05-03 08:31:14 -04:00
parent cfe63885cf
commit a8ba1b6371

View file

@ -350,19 +350,26 @@ export default {
methods: {
arePagePrerequisitesValid() {
// insurance drops the recycle fee on replace orders so it won't be in supportingItems
// we should also have a non cash parent account and a policy number
if (store.getters.payment.isInsurance) {
return (
if (
store.getters.payment.parentAccountNumber !==
applicationConfig.CASH_PARENT_ACCOUNT_NUMBER &&
store.getters.order.policy.policyNumber &&
store.getters.order.serviceLocation.zipCode
);
) {
return true;
} else {
return false;
}
} else {
return (
if (
store.getters.lineItems.supportingItems &&
store.getters.order.serviceLocation.zipCode
);
) {
return true;
} else {
return false;
}
}
},
setData(zipCodeData, serviceabilityDetails, mobileFeePart, shopProviderData) {