Setting current and original deductible
This commit is contained in:
parent
40c381fdb8
commit
b0353cf7f7
1 changed files with 7 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ const getDefaultState = () => ({
|
|||
referralCorrelationId: '00000000-0000-0000-0000-000000000000',
|
||||
referralSequenceNumber: null,
|
||||
eon: null,
|
||||
workOrderNumber: null
|
||||
workOrderNumber: null,
|
||||
originalDeductible: null,
|
||||
currentDeductible: null
|
||||
},
|
||||
applicationUser: {
|
||||
experiments: [],
|
||||
|
|
@ -898,6 +900,10 @@ export const useMainStore = defineStore({
|
|||
this.order.policy.deductible.replace = vehicle.deductible;
|
||||
this.order.policy.deductible.repair = vehicle?.repairWaived ?? false ? 0 : vehicle.deductible;
|
||||
|
||||
// TODO logic should be more complicated later on
|
||||
this.order.originalDeductible = vehicle.deductible;
|
||||
this.order.currentDeductible = vehicle.deductible;
|
||||
|
||||
this.resetSupportingItemsState();
|
||||
this.resetVapsState();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue