CSR-416 Change using registrationZip to serviceZip on vin-lookup
This commit is contained in:
parent
fdc95af943
commit
92900249f7
2 changed files with 8 additions and 10 deletions
|
|
@ -268,13 +268,7 @@ export default {
|
||||||
return store.getters.vehicle.vin
|
return store.getters.vehicle.vin
|
||||||
},
|
},
|
||||||
getZipFromStore(){
|
getZipFromStore(){
|
||||||
var serviceZip = store.getters.order.serviceLocation.zipCode;
|
return store.getters.order.serviceLocation.zipCode;
|
||||||
|
|
||||||
if (!serviceZip) {
|
|
||||||
serviceZip = store.getters.vehicle.registration.zipCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
return serviceZip;
|
|
||||||
},
|
},
|
||||||
attachCustomEvents() {
|
attachCustomEvents() {
|
||||||
this.prependActionToMethod(this, this.forwardButtonAction, () => {
|
this.prependActionToMethod(this, this.forwardButtonAction, () => {
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,8 @@ describe("Mutations", () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeState = state;
|
const storeState = state;
|
||||||
|
|
||||||
|
mutations.resetState(storeState);
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
mutations.updateStateWithOrderInformation(storeState, {
|
mutations.updateStateWithOrderInformation(storeState, {
|
||||||
referralNumber: 123,
|
referralNumber: 123,
|
||||||
|
|
@ -217,9 +219,11 @@ describe("Mutations", () => {
|
||||||
carId: "C0000001",
|
carId: "C0000001",
|
||||||
category: "CAR"
|
category: "CAR"
|
||||||
},
|
},
|
||||||
glassToReplace: ["Windshield"],
|
damage: {
|
||||||
isRepair: false,
|
glassToReplace: ["Windshield"],
|
||||||
numberOfChips: 0,
|
isRepair: false,
|
||||||
|
numberOfChips: 0,
|
||||||
|
},
|
||||||
parts: [],
|
parts: [],
|
||||||
accountNumber: "123456789",
|
accountNumber: "123456789",
|
||||||
insuranceInfo: {}
|
insuranceInfo: {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue