Merge pull request #1478 from Safelite/feature/CSR-1738-front-end-changes-to-pass-service-location
Added conditional to only send service location city, state, and zipc…
This commit is contained in:
commit
f8811c6984
1 changed files with 19 additions and 9 deletions
|
|
@ -2196,15 +2196,25 @@ export const actions = {
|
||||||
"lineItems"
|
"lineItems"
|
||||||
);
|
);
|
||||||
|
|
||||||
let queryString =
|
let queryString = "";
|
||||||
`ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` +
|
if (appointmentType == "Mobile") {
|
||||||
`&BillToAccountNumber=${billToAccountNumber}` +
|
queryString =
|
||||||
`&ProviderNumber=${providerNumber}` +
|
`ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` +
|
||||||
`&AppointmentType=${appointmentType}` +
|
`&BillToAccountNumber=${billToAccountNumber}` +
|
||||||
`&ServiceLocation.City=${serviceLocationCity}` +
|
`&ProviderNumber=${providerNumber}` +
|
||||||
`&ServiceLocation.State=${serviceLocationState}` +
|
`&AppointmentType=${appointmentType}` +
|
||||||
`&ServiceLocation.ZipCode=${serviceLocationZipCode}` +
|
`&ServiceLocation.City=${serviceLocationCity}` +
|
||||||
`&${pricedLineItemsFormattedForRequest}`;
|
`&ServiceLocation.State=${serviceLocationState}` +
|
||||||
|
`&ServiceLocation.ZipCode=${serviceLocationZipCode}` +
|
||||||
|
`&${pricedLineItemsFormattedForRequest}`;
|
||||||
|
} else {
|
||||||
|
queryString =
|
||||||
|
`ParentAccountNumber=${applicationConfig.CASH_PARENT_ACCOUNT_NUMBER}` +
|
||||||
|
`&BillToAccountNumber=${billToAccountNumber}` +
|
||||||
|
`&ProviderNumber=${providerNumber}` +
|
||||||
|
`&AppointmentType=${appointmentType}` +
|
||||||
|
`&${pricedLineItemsFormattedForRequest}`;
|
||||||
|
}
|
||||||
|
|
||||||
const lineItemServerData = context.getters.order.lineItems.serverData;
|
const lineItemServerData = context.getters.order.lineItems.serverData;
|
||||||
if (lineItemServerData) {
|
if (lineItemServerData) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue