Merge pull request #1938 from Safelite/feature/CSR-2181
CSR-2181 Exclude Labor2 part type
This commit is contained in:
commit
a599658c59
3 changed files with 18 additions and 12 deletions
|
|
@ -9,6 +9,7 @@ const partTypeStrings = {
|
|||
REPAIR_FEE: "REPAIR FEE",
|
||||
EARLY_BIRD: "EARLY BIRD",
|
||||
SERVICE_PACKAGE_DISCOUNT: "SERVICE PACKAGE DISCOUNT",
|
||||
LABOR2: "LABOR2",
|
||||
};
|
||||
|
||||
export { partTypeStrings };
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ import { fmgPageValues } from "@/router/router-constants/fmgPage-values";
|
|||
import { Form } from "vee-validate";
|
||||
import store from "@/store";
|
||||
import vehicleQuestionsMixin from "@/mixins/vehicle-questions-mixin";
|
||||
import { partTypeStrings } from "@/constants/part-type-strings";
|
||||
|
||||
export default {
|
||||
name: "vehicle-parts",
|
||||
|
|
@ -134,16 +135,18 @@ export default {
|
|||
glassName: g.glassName,
|
||||
glassLocation: g.glassLocation,
|
||||
colorAnswers: g.parts?.reduce((arr, p) => {
|
||||
arr.push({
|
||||
ColorAnswerText: p.color,
|
||||
FeatureAnswers: [
|
||||
{
|
||||
FeatureAnswerText:
|
||||
p.description === "" ? p.color : p.description,
|
||||
PartNumber: p.partNumber,
|
||||
},
|
||||
],
|
||||
});
|
||||
if (p.partType != partTypeStrings.LABOR2) {
|
||||
arr.push({
|
||||
ColorAnswerText: p.color,
|
||||
FeatureAnswers: [
|
||||
{
|
||||
FeatureAnswerText:
|
||||
p.description === "" ? p.color : p.description,
|
||||
PartNumber: p.partNumber,
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
return arr;
|
||||
}, []),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1267,7 +1267,8 @@ export const actions = {
|
|||
shouldUseSessionId: shouldUseSessionId,
|
||||
experimentsForUser: experimentsForUser,
|
||||
referralSequenceNumber: referralSequenceNumber,
|
||||
parentAccountNumber: parentAccountNumber,
|
||||
parentAccountNumber:
|
||||
parentAccountNumber ?? applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||
};
|
||||
|
||||
return globalMethods
|
||||
|
|
@ -1316,7 +1317,8 @@ export const actions = {
|
|||
shouldUseSessionId: shouldUseSessionId,
|
||||
experimentsForUser: experimentsForUser,
|
||||
referralSequenceNumber: referralSequenceNumber,
|
||||
parentAccountNumber: parentAccountNumber,
|
||||
parentAccountNumber:
|
||||
parentAccountNumber ?? applicationConfig.CASH_PARENT_ACCOUNT_NUMBER,
|
||||
};
|
||||
|
||||
return globalMethods
|
||||
|
|
|
|||
Loading…
Reference in a new issue