SSR-1183 BillToNumber response

This commit is contained in:
Josh Dassinger 2024-06-17 09:59:03 -05:00
parent 46f6a93745
commit cc78897aed

View file

@ -1131,17 +1131,21 @@ export const useMainStore = defineStore({
throw error;
});
const { lineItems, serverData, isItac } = response.data;
const { lineItems, serverData, isItac, primaryBillToNumber } = response.data;
if (serverData) {
this.order.lineItems.serverData = serverData;
}
if (primaryBillToNumber && primaryBillToNumber.length !== 0) {
this.issConfig.billToAccountNumber = primaryBillToNumber;
} else {
await this.getBillToInfo();
}
if (isItac) {
this.updateCoverageType(coverageType.ITAC);
await this.getBillToInfo();
} else if (this.isITAC) {
this.updateCoverageType(coverageType.Deductible);
await this.getBillToInfo();
}
if (lineItems) {