[UI] Fix stock dates (#12272)
* [UI] Fix stock dates - Display creation date - Display stocktake date * Switch to date type
This commit is contained in:
parent
5b1a7db07f
commit
12825aa1f4
|
|
@ -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
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue