Setting current and original deductible

This commit is contained in:
brydon1 2023-09-06 11:15:38 -04:00
parent 40c381fdb8
commit b0353cf7f7

View file

@ -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();
},