CASH-1952

CASH-1952 no need to encode data on post with axios.  flatten line items
This commit is contained in:
CarlNation 2026-01-10 15:35:28 -05:00
parent 8d704fdc97
commit 8e61e33f73

View file

@ -2378,13 +2378,13 @@ export const useMainStore = defineStore({
billToAccountNumber: this.billToAccountNumber, billToAccountNumber: this.billToAccountNumber,
providerNumber: this.providerNumber, providerNumber: this.providerNumber,
appointmentType: appointmentType, appointmentType: appointmentType,
pricedLineItems: pricedLineItems, pricedLineItems: getLineItemsFlattened(pricedLineItems),
serviceLocation: { serviceLocation: {
city: isMobileApt ? serviceLocationCity : null, city: isMobileApt ? serviceLocationCity : null,
state: isMobileApt ? serviceLocationState : null, state: isMobileApt ? serviceLocationState : null,
zipCode: isMobileApt ? serviceLocationZipCode : null, zipCode: isMobileApt ? serviceLocationZipCode : null,
}, },
serverData: lineItemServerData ? encodeURIComponent(lineItemServerData) : "", serverData: lineItemServerData ? lineItemServerData : "",
}, },
}).then((response) => { }).then((response) => {
this.order.lineItems.serverData = response.data.serverData; this.order.lineItems.serverData = response.data.serverData;