diff --git a/src/layouts/payment-page/payment-page.vue b/src/layouts/payment-page/payment-page.vue index 2642ccca..83e878ea 100644 --- a/src/layouts/payment-page/payment-page.vue +++ b/src/layouts/payment-page/payment-page.vue @@ -419,9 +419,6 @@ export default { const paymentSignaturePromise = await useMainStore().getPaymentSignature(); - const wipersPromise = useMainStore().getWipers(); - const rainDefensePromise = useMainStore().getRainDefense(); - // Settle promises and get results const promiseResultMap = [ { @@ -431,41 +428,14 @@ export default { { resultKey: 'paymentSignature', promise: paymentSignaturePromise - }, - { - resultKey: 'wipers', - promise: wipersPromise - }, - { - resultKey: 'rainDefense', - promise: rainDefensePromise } ]; // use resultMap to populate layout content. const resultMap = await settleAllPromises(promiseResultMap); - const lineItemsFromStore = useMainStore().lineItems; - const glassParts = lineItemsFromStore.glassParts ?? []; - const supportingItems = lineItemsFromStore.supportingItems ?? []; - - const lineItemsToTax = [ - resultMap.rainDefense, - ...supportingItems, - ...resultMap.wipers, - ...glassParts - ]; - const availableVaps = [resultMap.rainDefense, ...resultMap.wipers]; - const pricedLineItemsToTax = await useMainStore().priceOrderItemsAndSaveServerData(lineItemsToTax); - const taxedLineItems = await useMainStore().taxOrderItemsAndSaveServerData(pricedLineItemsToTax); - - // Match all line items to the line items as they are in the store - // and rebuild the original structure. - const taxLineItems = useMainStore().mapTaxedLineItemsToStoreFormat(taxedLineItems, lineItemsFromStore); - const taxedVaps = useMainStore().mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps); next((vm) => { vm.setCmsContent(resultMap.cmsContent); - vm.setData(taxedVaps, taxLineItems); vm.$nextTick(() => { if (vm.$refs.cart) { @@ -614,10 +584,6 @@ export default { && paymentMethodReqs ); }, - setData(taxedVaps, taxLineItems) { - this.availableVaps = taxedVaps; - this.lineItems = taxLineItems; - }, getWorkOrderNumber() { const { workOrderNumber } = useMainStore().order; if (workOrderNumber) {