CSR-1415
This commit is contained in:
parent
e550e3f5ce
commit
475123832b
2 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2818,7 +2818,7 @@ describe("isVinOptionalVehicle", () => {
|
|||
"CR00062396",
|
||||
"make3",
|
||||
[{ glassLocation: "windshield" }, { glassLocation: "driver" }],
|
||||
true,
|
||||
false,
|
||||
],
|
||||
["CR00066428", "make4", [{ glassLocation: "rear" }], false],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue