SSR-1183 PR Changes
This commit is contained in:
parent
cc78897aed
commit
63a6d9026c
1 changed files with 8 additions and 7 deletions
|
|
@ -1119,7 +1119,7 @@ export const useMainStore = defineStore({
|
|||
},
|
||||
Insurance: {
|
||||
AccountNumber: this.order.parentAccountNumber,
|
||||
Deductible: this.order.currentDeductible ?? 7777,
|
||||
Deductible: this.order.currentDeductible ?? 0,
|
||||
LineOfBusiness: 'PERSONAL',
|
||||
PolicyNumber: policy.policyNumber,
|
||||
CoverageStatus: insuranceCoverage.coverageStatus,
|
||||
|
|
@ -1132,22 +1132,23 @@ export const useMainStore = defineStore({
|
|||
});
|
||||
|
||||
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);
|
||||
} else if (this.isITAC) {
|
||||
this.updateCoverageType(coverageType.Deductible);
|
||||
}
|
||||
|
||||
if (primaryBillToNumber && primaryBillToNumber.length !== 0) {
|
||||
this.issConfig.billToAccountNumber = primaryBillToNumber;
|
||||
} else {
|
||||
await this.getBillToInfo();
|
||||
}
|
||||
|
||||
if (lineItems) {
|
||||
const retAvailableLineItems = addPricesToLineItems(availableLineItems, lineItems);
|
||||
return retAvailableLineItems;
|
||||
|
|
|
|||
Loading…
Reference in a new issue