[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
This commit is contained in:
Oliver 2024-07-11 12:38:00 +10:00 committed by GitHub
parent 2e4ab45635
commit 81ab7aa625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -101,6 +101,11 @@ export function BomTable({
); );
} }
}, },
{
accessor: 'sub_part_detail.IPN',
title: t`IPN`,
sortable: true
},
DescriptionColumn({ DescriptionColumn({
accessor: 'sub_part_detail.description' accessor: 'sub_part_detail.description'
}), }),

View File

@ -47,6 +47,16 @@ function stockItemTableColumns(): TableColumn[] {
sortable: true, sortable: true,
render: (record: any) => PartColumn(record?.part_detail) 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({ DescriptionColumn({
accessor: 'part_detail.description' accessor: 'part_detail.description'
}), }),