[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 4 deletions

View File

@ -431,17 +431,24 @@ export default function StockDetail() {
hidden: !stockitem.packaging
},
{
type: 'text',
type: 'date',
name: 'creation_date',
icon: 'calendar',
label: t`Created`,
hidden: !stockitem.creation_date
},
{
type: 'date',
name: 'updated',
icon: 'calendar',
label: t`Last Updated`
},
{
type: 'text',
name: 'stocktake',
type: 'date',
name: 'stocktake_date',
icon: 'calendar',
label: t`Last Stocktake`,
hidden: !stockitem.stocktake
hidden: !stockitem.stocktake_date
}
];