diff --git a/src/store/index.js b/src/store/index.js index 72b44782..e93e62b7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -637,6 +637,7 @@ export const useMainStore = defineStore({ referralCorrelationId: this.order.referralCorrelationId, accountNumber: this.order.parentAccountNumber?.toString() ?? '', policyData: this.order.policy.policyData, + isRepair: this.order.damage.isRepair, isItac: isITAC, insured: { firstName: this.order.customer.firstName, @@ -665,7 +666,9 @@ export const useMainStore = defineStore({ safelitePolicy: { policies: [] }, - actualDeductible: this.currentDeductible.toString() ?? '' + actualDeductible: this.currentDeductible.toString() ?? '', + currentRepairDeductible: this.order.currentDeductible.repair, + currentReplaceDeductible: this.order.currentDeductible.replace, }, lossInfo: { dateOfLoss: this.order.policy.dateOfLoss, @@ -728,6 +731,8 @@ export const useMainStore = defineStore({ status: this.order.policy.status, originalDeductible: this.originalDeductible, currentDeductible: this.currentDeductible, + currentRepairDeductible: this.order.currentDeductible.repair, + currentReplaceDeductible: this.order.currentDeductible.replace, noCoverage: false, isRepair: this.order.damage.isRepair, policyNumber: this.order.policy.policyNumber, diff --git a/src/store/store.spec.js b/src/store/store.spec.js index d6a29e43..157c34ec 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -1798,6 +1798,8 @@ describe('Store', () => { status, currentDeductible, originalDeductible, + currentRepairDeductible: store.order.currentDeductible.repair, + currentReplaceDeductible: store.order.currentDeductible.replace, noCoverage: store.isNoComp, isRepair, policyNumber, @@ -1904,6 +1906,8 @@ describe('Store', () => { status, currentDeductible, originalDeductible, + currentRepairDeductible: store.order.currentDeductible.repair, + currentReplaceDeductible: store.order.currentDeductible.replace, noCoverage: store.isNoComp, isRepair, policyNumber,