Merge pull request #1940 from Safelite/feature/CSR-2181
CSR-2181 remove labor2 logic from parts
This commit is contained in:
commit
42990f9040
3 changed files with 11 additions and 13 deletions
|
|
@ -9,7 +9,6 @@ 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 };
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,6 @@ 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) => {
|
||||||
if (p.partType != partTypeStrings.LABOR2) {
|
|
||||||
arr.push({
|
arr.push({
|
||||||
ColorAnswerText: p.color,
|
ColorAnswerText: p.color,
|
||||||
FeatureAnswers: [
|
FeatureAnswers: [
|
||||||
|
|
@ -146,7 +145,6 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
|
||||||
return arr;
|
return arr;
|
||||||
}, []),
|
}, []),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ export default {
|
||||||
const singlePart = glass.parts[0];
|
const singlePart = glass.parts[0];
|
||||||
reducedGlassParts.push({
|
reducedGlassParts.push({
|
||||||
partNumber: singlePart.partNumber,
|
partNumber: singlePart.partNumber,
|
||||||
|
basePartNumber: singlePart.basePartNumber,
|
||||||
description: singlePart.description,
|
description: singlePart.description,
|
||||||
color: singlePart.color,
|
color: singlePart.color,
|
||||||
partType: singlePart.partType,
|
partType: singlePart.partType,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue