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