From 81ab7aa62545afc6caac54c6979b9e296d137a3c Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 11 Jul 2024 12:38:00 +1000 Subject: [PATCH] [PUI] Add more columns (#7618) * [PUI] Add more columns - Add "IPN" column to stock table - Add "revision" column to stock table * Add IPN column to BOM table --- src/frontend/src/tables/bom/BomTable.tsx | 5 +++++ src/frontend/src/tables/stock/StockItemTable.tsx | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/frontend/src/tables/bom/BomTable.tsx b/src/frontend/src/tables/bom/BomTable.tsx index 2a22430219..495027e661 100644 --- a/src/frontend/src/tables/bom/BomTable.tsx +++ b/src/frontend/src/tables/bom/BomTable.tsx @@ -101,6 +101,11 @@ export function BomTable({ ); } }, + { + accessor: 'sub_part_detail.IPN', + title: t`IPN`, + sortable: true + }, DescriptionColumn({ accessor: 'sub_part_detail.description' }), diff --git a/src/frontend/src/tables/stock/StockItemTable.tsx b/src/frontend/src/tables/stock/StockItemTable.tsx index 9f6e9fcd34..3458b76a9f 100644 --- a/src/frontend/src/tables/stock/StockItemTable.tsx +++ b/src/frontend/src/tables/stock/StockItemTable.tsx @@ -47,6 +47,16 @@ function stockItemTableColumns(): TableColumn[] { sortable: true, render: (record: any) => PartColumn(record?.part_detail) }, + { + accessor: 'part_detail.IPN', + title: t`IPN`, + sortable: true + }, + { + accessor: 'part_detail.revision', + title: t`Revision`, + sortable: true + }, DescriptionColumn({ accessor: 'part_detail.description' }),