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",
|
||||
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