commit
7cf7518770
1 changed files with 27 additions and 21 deletions
|
|
@ -306,7 +306,9 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Get pricingByDayUpcharge needed for Pricing By Day
|
// Get pricingByDayUpcharge needed for Pricing By Day
|
||||||
const pricingByDayUpchargePartPromise = getPricingByDayPartWithPrice();
|
const pricingByDayUpchargePartPromise = showPricingByDay
|
||||||
|
? getPricingByDayPartWithPrice()
|
||||||
|
: null;
|
||||||
|
|
||||||
const premiumFeePromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
const premiumFeePromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.GET_MOBILE_PREMIUM_FEE,
|
storeActions.GET_MOBILE_PREMIUM_FEE,
|
||||||
|
|
@ -354,10 +356,12 @@ export default {
|
||||||
|
|
||||||
const resultMap = await settleAllPromises(promiseResultMap);
|
const resultMap = await settleAllPromises(promiseResultMap);
|
||||||
|
|
||||||
const pricingByDayUpcharge = await baseMixin.methods.getTotalLineItemPrice(
|
const pricingByDayUpcharge = showPricingByDay
|
||||||
|
? await baseMixin.methods.getTotalLineItemPrice(
|
||||||
resultMap.pricingByDayUpchargePart,
|
resultMap.pricingByDayUpchargePart,
|
||||||
false
|
false
|
||||||
);
|
)
|
||||||
|
: null;
|
||||||
|
|
||||||
const datePickerInitialData = resultMap.datePickerInitialData;
|
const datePickerInitialData = resultMap.datePickerInitialData;
|
||||||
datePickerInitialData.pricingByDayBasePrice = pricingByDayBasePrice;
|
datePickerInitialData.pricingByDayBasePrice = pricingByDayBasePrice;
|
||||||
|
|
@ -626,6 +630,7 @@ export default {
|
||||||
const supportingItems = this.getSupportingItems();
|
const supportingItems = this.getSupportingItems();
|
||||||
|
|
||||||
// if we have a pricing by day upcharge, then save/update supporting items with it
|
// if we have a pricing by day upcharge, then save/update supporting items with it
|
||||||
|
if (this.showPricingByDay) {
|
||||||
const pricingByDayUpchargeFeeIndex = supportingItems?.findIndex(
|
const pricingByDayUpchargeFeeIndex = supportingItems?.findIndex(
|
||||||
(item) => item.partType == PRICING_BY_DAY_PART_TYPE
|
(item) => item.partType == PRICING_BY_DAY_PART_TYPE
|
||||||
);
|
);
|
||||||
|
|
@ -646,6 +651,7 @@ export default {
|
||||||
supportingItems.splice(pricingByDayUpchargeFeeIndex, 1);
|
supportingItems.splice(pricingByDayUpchargeFeeIndex, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if we have a premium fee(early bird), then save/update supporting items
|
// if we have a premium fee(early bird), then save/update supporting items
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue