diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index 81e253d58..80759099e 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -96,7 +96,7 @@ export function JobLinesComponent({ filteredInfo: { ...(isPartsEntry ? { - part_type: ["PAN", "PAC", "PAR", "PAL", "PAA", "PAM", "PAP", "PAS", "PASL", "PAG"] + part_type: ["PAN", "PAC", "PAR", "PAL", "PAA", "PAM", "PAP", "PAS", "PASL", "PAG", "PAO"] } : {}) } @@ -166,7 +166,9 @@ export function JobLinesComponent({ filters: [ { text: t("jobs.labels.partsfilter"), - value: ["PAN", "PAC", "PAR", "PAL", "PAA", "PAM", "PAP", "PAS", "PASL", "PAG"] + value: isPartsEntry + ? ["PAN", "PAC", "PAR", "PAL", "PAA", "PAM", "PAP", "PAS", "PASL", "PAG", "PAO"] + : ["PAN", "PAC", "PAR", "PAL", "PAA", "PAM", "PAP", "PAS", "PASL", "PAG"] }, { text: t("joblines.fields.part_types.PAN"), @@ -207,8 +209,17 @@ export function JobLinesComponent({ { text: t("joblines.fields.part_types.PAM"), value: ["PAM"] - } + }, + ...(isPartsEntry + ? [ + { + text: t("joblines.fields.part_types.PAO"), + value: ["PAO"] + } + ] + : []) ], + onFilter: (value, record) => value.includes(record.part_type), render: (text, record) => (record.part_type ? t(`joblines.fields.part_types.${record.part_type}`) : null) },