mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-15 05:32:21 +00:00
[UI] Tweak dashboard filters (#10501)
- "low stock" should only be shown for non-virtual parts
This commit is contained in:
@@ -51,7 +51,11 @@ export function BuiltinQueryCountWidgets(): DashboardWidgetProps[] {
|
|||||||
label: 'low-stk',
|
label: 'low-stk',
|
||||||
description: t`Show the number of parts which are low on stock`,
|
description: t`Show the number of parts which are low on stock`,
|
||||||
modelType: ModelType.part,
|
modelType: ModelType.part,
|
||||||
params: { low_stock: true, active: true }
|
params: {
|
||||||
|
active: true,
|
||||||
|
low_stock: true,
|
||||||
|
virtual: false
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
QueryCountDashboardWidget({
|
QueryCountDashboardWidget({
|
||||||
title: t`Required for Build Orders`,
|
title: t`Required for Build Orders`,
|
||||||
|
Reference in New Issue
Block a user