SSR-1183 BillToNumber response
This commit is contained in:
parent
46f6a93745
commit
cc78897aed
1 changed files with 7 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue