[UI] Fix 'available' display (#12279)

- Hide entirely for items not "in_stock"
This commit is contained in:
Oliver 2026-06-30 09:53:40 +10:00 committed by GitHub
parent d00681e20c
commit 635ea8179e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ export default function StockDetail() {
name: 'available_stock',
label: t`Available`,
unit: part?.units,
icon: 'stock'
icon: 'stock',
hidden: stockitem.in_stock == false
},
{
type: 'number',