diff --git a/src/store/index.js b/src/store/index.js index bc4c8f09..316c5d96 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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) {