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:
@@ -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
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user