mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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`,
|
label: t`Part`,
|
||||||
model: ModelType.part
|
model: ModelType.part
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: 'text',
|
||||||
|
name: 'part_detail.IPN',
|
||||||
|
icon: 'part',
|
||||||
|
label: t`IPN`,
|
||||||
|
hidden: !build.part_detail?.IPN,
|
||||||
|
copy: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'status',
|
type: 'status',
|
||||||
name: 'status',
|
name: 'status',
|
||||||
@ -104,13 +112,15 @@ export default function BuildDetail() {
|
|||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
name: 'reference',
|
name: 'reference',
|
||||||
label: t`Reference`
|
label: t`Reference`,
|
||||||
|
copy: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
name: 'title',
|
name: 'title',
|
||||||
label: t`Description`,
|
label: t`Description`,
|
||||||
icon: 'description'
|
icon: 'description',
|
||||||
|
copy: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
@ -43,6 +43,12 @@ function buildOrderTableColumns(): TableColumn[] {
|
|||||||
switchable: false,
|
switchable: false,
|
||||||
render: (record: any) => PartColumn(record.part_detail)
|
render: (record: any) => PartColumn(record.part_detail)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
accessor: 'part_detail.IPN',
|
||||||
|
sortable: true,
|
||||||
|
switchable: true,
|
||||||
|
title: t`IPN`
|
||||||
|
},
|
||||||
{
|
{
|
||||||
accessor: 'title',
|
accessor: 'title',
|
||||||
sortable: false
|
sortable: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user