diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 58dfdaead..59e17d92d 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -165,6 +165,7 @@ export default { billToAccountNumber: "87291", providerNumber: store.getters.order.serviceLocation.provider.providerNumber, appointmentType: store.getters.order.serviceLocation.appointmentType, + serviceLocationCity: store.getters.order.serviceLocation.city, serviceLocationState: store.getters.order.serviceLocation.state, serviceLocationZipCode: store.getters.order.serviceLocation.zipCode, pricedAvailableLineItems: availableLineItems, diff --git a/src/store/index.js b/src/store/index.js index 46c36c263..b40185d5d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2172,9 +2172,6 @@ export const actions = { pageNameToLog, } ) { - // const flattenedLineItemsWithChildParts = - // getFlattenedArrayOfLineItemsWithChildParts(pricedLineItems); - const lineItemsWithOnlyPriceInfo = pricedAvailableLineItems.map((lineItem) => ({ partNumber: lineItem.partNumber, laborAmount: lineItem.laborAmount ?? 0, @@ -2193,6 +2190,7 @@ export const actions = { `&BillToAccountNumber=${billToAccountNumber}` + `&ProviderNumber=${providerNumber}` + `&AppointmentType=${appointmentType}` + + `&ServiceLocation.City=${serviceLocationCity}` + `&ServiceLocation.State=${serviceLocationState}` + `&ServiceLocation.ZipCode=${serviceLocationZipCode}` + `&${pricedLineItemsFormattedForRequest}`; @@ -2209,15 +2207,7 @@ export const actions = { pageNameToLog: pageNameToLog, }); - //context.commit(storeMutations.UPDATE_LINE_ITEMS_SERVER_DATA, response.data.serverData); - - // pricedLineItems.forEach((pricedLineItem) => { - // for (const [key, value] of Object.entries(storeLineItems)) { - // storeLineItems[key] = pricedLineItem; - // } - // }); - - // console.log(pricedLineItems) + context.commit(storeMutations.UPDATE_LINE_ITEMS_SERVER_DATA, response.data.serverData); pricedAvailableLineItems = addTaxesToPricedLineItems( pricedAvailableLineItems,