Merge pull request #1205 from Safelite/feature/jzimmerman/INSR-9443

INSR-9443: Adding future support for policy data validation of separate repair + replacement deductibles.
This commit is contained in:
Jeremy-Z 2026-04-30 14:39:53 -04:00 committed by GitHub
commit 3d72aa36c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -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,

View file

@ -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,