vin-lookup couldn't rely on registration zip, updated logic to pull from either registration or customer depending on which was available.
This commit is contained in:
parent
96476aa44a
commit
acbbbfe661
2 changed files with 2 additions and 1 deletions
|
|
@ -197,6 +197,7 @@ export default {
|
||||||
registrationInfo: {
|
registrationInfo: {
|
||||||
licensePlate: this.licensePlate,
|
licensePlate: this.licensePlate,
|
||||||
state: this.licenseState,
|
state: this.licenseState,
|
||||||
|
zipCode: useMainStore().vehicle.registration.zipCode,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -329,7 +329,7 @@ export const useMainStore = defineStore({
|
||||||
|
|
||||||
const carId = vehicle.carId;
|
const carId = vehicle.carId;
|
||||||
const glassArray = damage.glassToReplace;
|
const glassArray = damage.glassToReplace;
|
||||||
const zipCode = order.customer.zipCode;
|
const zipCode = vehicle.registration.zipCode ? vehicle.registration.zipCode : order.customer.address.zipCode;
|
||||||
const vin = vehicle.vin;
|
const vin = vehicle.vin;
|
||||||
|
|
||||||
// create a new array to avoid mutating state
|
// create a new array to avoid mutating state
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue