mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-31 16:41:03 +00:00
Add copy function to more columns (#11635)
This commit is contained in:
@@ -151,7 +151,9 @@ export default function BuildAllocatedStockTable({
|
|||||||
accessor: 'sku',
|
accessor: 'sku',
|
||||||
title: t`Supplier Part`,
|
title: t`Supplier Part`,
|
||||||
render: (record: any) => record?.supplier_part_detail?.SKU,
|
render: (record: any) => record?.supplier_part_detail?.SKU,
|
||||||
sortable: true
|
sortable: true,
|
||||||
|
copyable: true,
|
||||||
|
copyAccessor: 'supplier_part_detail.SKU'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export function PartCategoryTable({ parentId }: Readonly<{ parentId?: any }>) {
|
|||||||
accessor: 'name',
|
accessor: 'name',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
|
copyable: true,
|
||||||
render: (record: any) => (
|
render: (record: any) => (
|
||||||
<Group gap='xs' wrap='nowrap' justify='space-between'>
|
<Group gap='xs' wrap='nowrap' justify='space-between'>
|
||||||
<Group gap='xs' wrap='nowrap'>
|
<Group gap='xs' wrap='nowrap'>
|
||||||
@@ -60,6 +61,7 @@ export function PartCategoryTable({ parentId }: Readonly<{ parentId?: any }>) {
|
|||||||
DescriptionColumn({}),
|
DescriptionColumn({}),
|
||||||
{
|
{
|
||||||
accessor: 'pathstring',
|
accessor: 'pathstring',
|
||||||
|
copyable: true,
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ export function RelatedPartTable({
|
|||||||
accessor: 'ipn',
|
accessor: 'ipn',
|
||||||
title: t`IPN`,
|
title: t`IPN`,
|
||||||
switchable: true,
|
switchable: true,
|
||||||
|
copyable: true,
|
||||||
render: (record: any) => {
|
render: (record: any) => {
|
||||||
const part = getPart(record);
|
const part = getPart(record);
|
||||||
return part.IPN;
|
return part.IPN;
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export function StockLocationTable({ parentId }: Readonly<{ parentId?: any }>) {
|
|||||||
{
|
{
|
||||||
accessor: 'name',
|
accessor: 'name',
|
||||||
switchable: false,
|
switchable: false,
|
||||||
|
copyable: true,
|
||||||
render: (record: any) => (
|
render: (record: any) => (
|
||||||
<Group gap='xs'>
|
<Group gap='xs'>
|
||||||
{record.icon && <ApiIcon name={record.icon} />}
|
{record.icon && <ApiIcon name={record.icon} />}
|
||||||
@@ -78,6 +79,7 @@ export function StockLocationTable({ parentId }: Readonly<{ parentId?: any }>) {
|
|||||||
DescriptionColumn({}),
|
DescriptionColumn({}),
|
||||||
{
|
{
|
||||||
accessor: 'pathstring',
|
accessor: 'pathstring',
|
||||||
|
copyable: true,
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user