2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-19 09:01:31 +00:00

[UI] Display Stock link (#10350)

- Display "link" for stock item
This commit is contained in:
Oliver
2025-09-19 10:24:31 +10:00
committed by GitHub
parent fd57b5354b
commit 843dd92901

View File

@@ -173,17 +173,12 @@ export default function StockDetail() {
stockitem.status_custom_key == stockitem.status
},
{
type: 'text',
name: 'updated',
icon: 'calendar',
label: t`Last Updated`
},
{
type: 'text',
name: 'stocktake',
icon: 'calendar',
label: t`Last Stocktake`,
hidden: !stockitem.stocktake
type: 'link',
name: 'link',
label: t`Link`,
external: true,
copy: true,
hidden: !stockitem.link
}
];
@@ -415,6 +410,19 @@ export default function StockDetail() {
icon: 'part',
label: t`Packaging`,
hidden: !stockitem.packaging
},
{
type: 'text',
name: 'updated',
icon: 'calendar',
label: t`Last Updated`
},
{
type: 'text',
name: 'stocktake',
icon: 'calendar',
label: t`Last Stocktake`,
hidden: !stockitem.stocktake
}
];