From db09f33e5cfa71668a8a2fee7093481b6c245fc7 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 18 Aug 2025 11:47:34 -0400 Subject: [PATCH] feature/IO-3255-simplified-parts-management - Add PAO in for isPartsEntry --- .../job-detail-lines/job-lines.component.jsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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) },