Updated logic for calling final-deductible.
This commit is contained in:
parent
d6249dfed4
commit
a472919eef
1 changed files with 10 additions and 2 deletions
|
|
@ -546,10 +546,18 @@ export const useMainStore = defineStore({
|
|||
status: this.order.policy.status,
|
||||
currentDeductible: this.order.currentDeductible,
|
||||
noCoverage: this.order.policy.noCoverage,
|
||||
isRepair: this.order.damage.isRepair
|
||||
isRepair: this.order.damage.isRepair,
|
||||
insuredFirstName: this.order.customer.firstName,
|
||||
insuredLastName: this.order.customer.lastName,
|
||||
insuredZipCode: this.order.customer.address.zipCode,
|
||||
policyVehicleId: this.order.vehicle.policyVehicleId,
|
||||
vehicleVin: this.order.vehicle.vin,
|
||||
policyData: this.order.policy.policyData,
|
||||
isItac: this.order.policy.isITAC
|
||||
}
|
||||
}).then((r) => {
|
||||
this.updateDeductible(r.data);
|
||||
this.order.policy.policyData = r.data.policyData;
|
||||
this.updateDeductible(r.data.deductible);
|
||||
return resolve(r);
|
||||
}).catch((error) => reject(error));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue