CSR-2181 Exclude Labor2 part type
CSR-2181 The labor2 part type should be excluded where looking at glass parts. It is part of the glass parts request and response because you need the base glass part to determine if labor2 applies. It would make more sense to add it to supporting items but that request does not include base part number for windshields. This certainly won't come back to haunt me later.
This commit is contained in:
parent
0d6152f9f2
commit
a6c9ea67de
3 changed files with 18 additions and 12 deletions
|
|
@ -9,6 +9,7 @@ const partTypeStrings = {
|
||||||
REPAIR_FEE: "REPAIR FEE",
|
REPAIR_FEE: "REPAIR FEE",
|
||||||
EARLY_BIRD: "EARLY BIRD",
|
EARLY_BIRD: "EARLY BIRD",
|
||||||
SERVICE_PACKAGE_DISCOUNT: "SERVICE PACKAGE DISCOUNT",
|
SERVICE_PACKAGE_DISCOUNT: "SERVICE PACKAGE DISCOUNT",
|
||||||
|
LABOR2: "LABOR2",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { partTypeStrings };
|
export { partTypeStrings };
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ import { fmgPageValues } from "@/router/router-constants/fmgPage-values";
|
||||||
import { Form } from "vee-validate";
|
import { Form } from "vee-validate";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import vehicleQuestionsMixin from "@/mixins/vehicle-questions-mixin";
|
import vehicleQuestionsMixin from "@/mixins/vehicle-questions-mixin";
|
||||||
|
import { partTypeStrings } from "@/constants/part-type-strings";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vehicle-parts",
|
name: "vehicle-parts",
|
||||||
|
|
@ -134,16 +135,18 @@ export default {
|
||||||
glassName: g.glassName,
|
glassName: g.glassName,
|
||||||
glassLocation: g.glassLocation,
|
glassLocation: g.glassLocation,
|
||||||
colorAnswers: g.parts?.reduce((arr, p) => {
|
colorAnswers: g.parts?.reduce((arr, p) => {
|
||||||
arr.push({
|
if (p.partType != partTypeStrings.LABOR2) {
|
||||||
ColorAnswerText: p.color,
|
arr.push({
|
||||||
FeatureAnswers: [
|
ColorAnswerText: p.color,
|
||||||
{
|
FeatureAnswers: [
|
||||||
FeatureAnswerText:
|
{
|
||||||
p.description === "" ? p.color : p.description,
|
FeatureAnswerText:
|
||||||
PartNumber: p.partNumber,
|
p.description === "" ? p.color : p.description,
|
||||||
},
|
PartNumber: p.partNumber,
|
||||||
],
|
},
|
||||||
});
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
return arr;
|
return arr;
|
||||||
}, []),
|
}, []),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1267,7 +1267,8 @@ export const actions = {
|
||||||
shouldUseSessionId: shouldUseSessionId,
|
shouldUseSessionId: shouldUseSessionId,
|
||||||
experimentsForUser: experimentsForUser,
|
experimentsForUser: experimentsForUser,
|
||||||
referralSequenceNumber: referralSequenceNumber,
|
referralSequenceNumber: referralSequenceNumber,
|
||||||
parentAccountNumber: parentAccountNumber,
|
parentAccountNumber:
|
||||||
|
parentAccountNumber ?? applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||||
};
|
};
|
||||||
|
|
||||||
return globalMethods
|
return globalMethods
|
||||||
|
|
@ -1316,7 +1317,8 @@ export const actions = {
|
||||||
shouldUseSessionId: shouldUseSessionId,
|
shouldUseSessionId: shouldUseSessionId,
|
||||||
experimentsForUser: experimentsForUser,
|
experimentsForUser: experimentsForUser,
|
||||||
referralSequenceNumber: referralSequenceNumber,
|
referralSequenceNumber: referralSequenceNumber,
|
||||||
parentAccountNumber: parentAccountNumber,
|
parentAccountNumber:
|
||||||
|
parentAccountNumber ?? applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||||
};
|
};
|
||||||
|
|
||||||
return globalMethods
|
return globalMethods
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue