CASH-1179 - Updating Vin only for Audi going back to 2010

This commit is contained in:
Minojhini Valaiyapathi 2025-07-15 14:31:47 -04:00
parent 91773ce11c
commit 120be59919
2 changed files with 3 additions and 0 deletions

View file

@ -3310,6 +3310,8 @@ export const actions = {
(context.state.order.vehicle.make.toLowerCase() === "bmw" &&
context.state.order.vehicle.year < 2010) ||
(context.state.order.vehicle.make.toLowerCase() === "volkswagen" &&
context.state.order.vehicle.year < 2010) ||
(context.state.order.vehicle.make.toLowerCase() === "audi" &&
context.state.order.vehicle.year < 2010)
)
return true;

View file

@ -4248,6 +4248,7 @@ describe("isVinOptionalVehicle", () => {
["2016", "volkswagen", false],
["2016", "audi", false],
["2016", "porsche", true],
["2009", "audi", true],
];
test.each(testVehicles)(
"%s %s should skip vin lookup is %s",