mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
[PUI] Build detail IPN (#7865)
* Add "IPN" detail to build order page * Add "IPN" column to build order table
This commit is contained in:
parent
27fba9cd02
commit
a37d21856e
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user