2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Adds ability to filter stock item tables by "tracked" status

- Also fixes some slight errors in the API filtering logic
This commit is contained in:
Oliver Walters
2022-04-19 18:13:48 +10:00
parent d213e1fdc7
commit 2315d0cb5d
2 changed files with 35 additions and 4 deletions

View File

@ -242,6 +242,11 @@ function getAvailableTableFilters(tableKey) {
title: '{% trans "Batch" %}',
description: '{% trans "Batch code" %}',
},
tracked: {
title: '{% trans "Tracked" %}',
description: '{% trans "Stock item is tracked by either batch code or serial number" %}',
type: 'bool',
},
has_purchase_price: {
type: 'bool',
title: '{% trans "Has purchase price" %}',