From cc78897aed2894830be38d929a7ac6b43aa8bc78 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Mon, 17 Jun 2024 09:59:03 -0500 Subject: [PATCH] SSR-1183 BillToNumber response --- src/store/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) {