From a472919eeff13bf23e8f07080674dc5c4870aa92 Mon Sep 17 00:00:00 2001 From: Jeremy Zimmerman Date: Mon, 20 Nov 2023 13:24:50 -0500 Subject: [PATCH] Updated logic for calling final-deductible. --- src/store/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index fbbe645a..c0bbd4d0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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)); });