mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
[PUI] Part IPN display (#8264)
* Add IPN column to order tables * Fix display on SupplierPartDetail page * Update manufacturer part detail page
This commit is contained in:
parent
67434b319b
commit
0b87dc9372
@ -171,7 +171,7 @@ export default function CompanyDetail(props: Readonly<CompanyDetailProps>) {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
name: 'details',
|
name: 'details',
|
||||||
label: t`Details`,
|
label: t`Company Details`,
|
||||||
icon: <IconInfoCircle />,
|
icon: <IconInfoCircle />,
|
||||||
content: detailsPanel
|
content: detailsPanel
|
||||||
},
|
},
|
||||||
|
@ -79,18 +79,19 @@ export default function ManufacturerPartDetail() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'description',
|
name: 'part_detail.IPN',
|
||||||
label: t`Description`,
|
label: t`IPN`,
|
||||||
copy: true,
|
copy: true,
|
||||||
hidden: !manufacturerPart.description
|
icon: 'serial',
|
||||||
|
hidden: !data.part_detail?.IPN
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'link',
|
type: 'string',
|
||||||
external: true,
|
name: 'part_detail.description',
|
||||||
name: 'link',
|
label: t`Description`,
|
||||||
label: t`External Link`,
|
|
||||||
copy: true,
|
copy: true,
|
||||||
hidden: !manufacturerPart.link
|
icon: 'info',
|
||||||
|
hidden: !manufacturerPart.description
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -110,6 +111,22 @@ export default function ManufacturerPartDetail() {
|
|||||||
copy: true,
|
copy: true,
|
||||||
hidden: !manufacturerPart.MPN,
|
hidden: !manufacturerPart.MPN,
|
||||||
icon: 'reference'
|
icon: 'reference'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
name: 'description',
|
||||||
|
label: t`Description`,
|
||||||
|
copy: true,
|
||||||
|
hidden: !manufacturerPart.description,
|
||||||
|
icon: 'info'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'link',
|
||||||
|
external: true,
|
||||||
|
name: 'link',
|
||||||
|
label: t`External Link`,
|
||||||
|
copy: true,
|
||||||
|
hidden: !manufacturerPart.link
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -128,11 +145,7 @@ export default function ManufacturerPartDetail() {
|
|||||||
/>
|
/>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={8}>
|
<Grid.Col span={8}>
|
||||||
<DetailsTable
|
<DetailsTable title={t`Part Details`} fields={tl} item={data} />
|
||||||
title={t`Manufacturer Part`}
|
|
||||||
fields={tl}
|
|
||||||
item={data}
|
|
||||||
/>
|
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<DetailsTable title={t`Manufacturer Details`} fields={tr} item={data} />
|
<DetailsTable title={t`Manufacturer Details`} fields={tr} item={data} />
|
||||||
|
@ -88,9 +88,18 @@ export default function SupplierPartDetail() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
name: 'description',
|
name: 'part_detail.IPN',
|
||||||
|
label: t`IPN`,
|
||||||
|
copy: true,
|
||||||
|
hidden: !data.part_detail?.IPN,
|
||||||
|
icon: 'serial'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
name: 'part_detail.description',
|
||||||
label: t`Description`,
|
label: t`Description`,
|
||||||
copy: true
|
copy: true,
|
||||||
|
icon: 'info'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'link',
|
type: 'link',
|
||||||
@ -196,7 +205,7 @@ export default function SupplierPartDetail() {
|
|||||||
/>
|
/>
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
<Grid.Col span={8}>
|
<Grid.Col span={8}>
|
||||||
<DetailsTable title={t`Supplier Part`} fields={tl} item={data} />
|
<DetailsTable title={t`Part Details`} fields={tl} item={data} />
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
</Grid>
|
</Grid>
|
||||||
<DetailsTable title={t`Supplier`} fields={tr} item={data} />
|
<DetailsTable title={t`Supplier`} fields={tr} item={data} />
|
||||||
|
@ -125,17 +125,18 @@ export function PurchaseOrderLineItemTable({
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
accessor: 'part',
|
accessor: 'part',
|
||||||
title: t`Internal Part`,
|
title: t`Part`,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
render: (record: any) => PartColumn({ part: record.part_detail })
|
render: (record: any) => PartColumn({ part: record.part_detail })
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessor: 'description',
|
accessor: 'part_detail.IPN',
|
||||||
title: t`Part Description`,
|
sortable: false
|
||||||
|
},
|
||||||
sortable: false,
|
{
|
||||||
render: (record: any) => record?.part_detail?.description
|
accessor: 'part_detail.description',
|
||||||
|
sortable: false
|
||||||
},
|
},
|
||||||
ReferenceColumn({}),
|
ReferenceColumn({}),
|
||||||
{
|
{
|
||||||
|
@ -101,6 +101,14 @@ export default function ReturnOrderLineItemTable({
|
|||||||
switchable: false,
|
switchable: false,
|
||||||
render: (record: any) => PartColumn({ part: record?.part_detail })
|
render: (record: any) => PartColumn({ part: record?.part_detail })
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
accessor: 'part_detail.IPN',
|
||||||
|
sortable: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
accessor: 'part_detail.description',
|
||||||
|
sortable: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
accessor: 'item_detail.serial',
|
accessor: 'item_detail.serial',
|
||||||
title: t`Serial Number`,
|
title: t`Serial Number`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user