This commit is contained in:
Sneha 2023-06-13 17:44:24 +05:30
parent e550e3f5ce
commit 475123832b
2 changed files with 4 additions and 3 deletions

View file

@ -1532,12 +1532,13 @@ export const actions = {
},
isVinOptionalVehicle(context) {
if (
singleWindshieldCarid.find((item) => item === context.state.order.vehicle.carId) &&
singleWindshieldCarid.find((item) => item === context.state.order.vehicle.carId)
&& context.state.order.damage.glassToReplace.length == 1 &&
context.state.order.damage.glassToReplace.find(
(glassToReplace) =>
glassToReplace.glassLocation.toLowerCase() ===
damageLocationsSelected.WINDSHIELD.toLowerCase()
)
)
) {
return true;
}

View file

@ -2818,7 +2818,7 @@ describe("isVinOptionalVehicle", () => {
"CR00062396",
"make3",
[{ glassLocation: "windshield" }, { glassLocation: "driver" }],
true,
false,
],
["CR00066428", "make4", [{ glassLocation: "rear" }], false],
];