2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-07-04 06:00:38 +00:00

[UI] Fix stock dates (#12272)

* [UI] Fix stock dates

- Display creation date
- Display stocktake date

* Switch to date type
This commit is contained in:
Oliver
2026-06-29 16:01:33 +10:00
committed by GitHub
parent 5b1a7db07f
commit 12825aa1f4
+11 -4
View File
@@ -431,17 +431,24 @@ export default function StockDetail() {
hidden: !stockitem.packaging hidden: !stockitem.packaging
}, },
{ {
type: 'text', type: 'date',
name: 'creation_date',
icon: 'calendar',
label: t`Created`,
hidden: !stockitem.creation_date
},
{
type: 'date',
name: 'updated', name: 'updated',
icon: 'calendar', icon: 'calendar',
label: t`Last Updated` label: t`Last Updated`
}, },
{ {
type: 'text', type: 'date',
name: 'stocktake', name: 'stocktake_date',
icon: 'calendar', icon: 'calendar',
label: t`Last Stocktake`, label: t`Last Stocktake`,
hidden: !stockitem.stocktake hidden: !stockitem.stocktake_date
} }
]; ];