[PUI] Build detail IPN (#7865)

* Add "IPN" detail to build order page

* Add "IPN" column to build order table
This commit is contained in:
Oliver 2024-08-13 15:25:05 +10:00 committed by GitHub
parent 27fba9cd02
commit a37d21856e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 2 deletions

View File

@ -95,6 +95,14 @@ export default function BuildDetail() {
label: t`Part`,
model: ModelType.part
},
{
type: 'text',
name: 'part_detail.IPN',
icon: 'part',
label: t`IPN`,
hidden: !build.part_detail?.IPN,
copy: true
},
{
type: 'status',
name: 'status',
@ -104,13 +112,15 @@ export default function BuildDetail() {
{
type: 'text',
name: 'reference',
label: t`Reference`
label: t`Reference`,
copy: true
},
{
type: 'text',
name: 'title',
label: t`Description`,
icon: 'description'
icon: 'description',
copy: true
},
{
type: 'link',

View File

@ -43,6 +43,12 @@ function buildOrderTableColumns(): TableColumn[] {
switchable: false,
render: (record: any) => PartColumn(record.part_detail)
},
{
accessor: 'part_detail.IPN',
sortable: true,
switchable: true,
title: t`IPN`
},
{
accessor: 'title',
sortable: false