[UI] Fix 'available' display (#12279)
- Hide entirely for items not "in_stock"
This commit is contained in:
parent
d00681e20c
commit
635ea8179e
|
|
@ -275,7 +275,8 @@ export default function StockDetail() {
|
||||||
name: 'available_stock',
|
name: 'available_stock',
|
||||||
label: t`Available`,
|
label: t`Available`,
|
||||||
unit: part?.units,
|
unit: part?.units,
|
||||||
icon: 'stock'
|
icon: 'stock',
|
||||||
|
hidden: stockitem.in_stock == false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue