* Get set parentAccount in cookie correctly
* Do not call order-items pricing when mobile fee returned no results
 * Allow insurance prereq to exclude supportingItems
This commit is contained in:
CarlNation 2024-02-07 15:27:31 -05:00
parent e6b4831770
commit 48bb6ed7e7
4 changed files with 16 additions and 3 deletions

View file

@ -18,7 +18,7 @@ export function updateOrCreateFunnelCookie() {
ReferralNumber: store.getters.order.referralNumber, ReferralNumber: store.getters.order.referralNumber,
ReferralDate: store.getters.order.referralDate, ReferralDate: store.getters.order.referralDate,
ReferralCorrelationId: store.getters.order.referralCorrelationId, ReferralCorrelationId: store.getters.order.referralCorrelationId,
ReferralParentAccountNumber: store.getters.order.accountNumber, ReferralParentAccountNumber: store.getters.order.payment.parentAccountNumber,
HasDelayedClaimRegistration: wasClaimRegistrationDelayed, HasDelayedClaimRegistration: wasClaimRegistrationDelayed,
SuppressConceptFunnel: shouldSuppressConceptFunnel, SuppressConceptFunnel: shouldSuppressConceptFunnel,
SavedSessionId: store.getters.applicationUser.savedSessionId, SavedSessionId: store.getters.applicationUser.savedSessionId,

View file

@ -16,6 +16,10 @@ export async function getPricedMobileFeePart(serviceZipCode, pageNameToLog) {
false false
); );
if (mobileFeePart.data === null || mobileFeePart.data === undefined || mobileFeePart.data === "") {
return null;
}
// Get the Mobile Fee Part Price // Get the Mobile Fee Part Price
const pricingResults = await baseMixin.methods.dispatchStoreActionWithLogging( const pricingResults = await baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA, storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA,

View file

@ -349,11 +349,19 @@ export default {
}, },
methods: { methods: {
arePagePrerequisitesValid() { arePagePrerequisitesValid() {
return ( // insurance drops the recycle fee on replace orders so it won't be in supportingItems
if (store.getters.payment.isInsurance && !store.getters.order.damage.isRepair) {
return (
store.getters.order.serviceLocation.zipCode !== null &&
store.getters.payment.isInsurance !== null);
}
else {
return (
store.getters.lineItems.supportingItems !== null && store.getters.lineItems.supportingItems !== null &&
store.getters.order.serviceLocation.zipCode !== null && store.getters.order.serviceLocation.zipCode !== null &&
store.getters.payment.isInsurance !== null store.getters.payment.isInsurance !== null
); );
}
}, },
setData(zipCodeData, serviceabilityDetails, mobileFeePart, shopProviderData) { setData(zipCodeData, serviceabilityDetails, mobileFeePart, shopProviderData) {
if (zipCodeData) { if (zipCodeData) {

View file

@ -2229,6 +2229,7 @@ export const actions = {
const vehicle = context.getters.order.vehicle; const vehicle = context.getters.order.vehicle;
// TODO: Insurance pricing...`ParentAccountNumber=${context.getters.order.payment.parentAccountNumber}`
let queryString = let queryString =
`ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` + `ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` +
`&CTU=${ctuToUse}` + `&CTU=${ctuToUse}` +