From 12825aa1f4f6b47fabc47dda980d74df50d7dad4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 29 Jun 2026 16:01:33 +1000 Subject: [PATCH] [UI] Fix stock dates (#12272) * [UI] Fix stock dates - Display creation date - Display stocktake date * Switch to date type --- src/frontend/src/pages/stock/StockDetail.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/pages/stock/StockDetail.tsx b/src/frontend/src/pages/stock/StockDetail.tsx index 5d73866074..fa4bb80fa9 100644 --- a/src/frontend/src/pages/stock/StockDetail.tsx +++ b/src/frontend/src/pages/stock/StockDetail.tsx @@ -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 } ];