2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add ability to filter parts by "low_stock"

- Huzzah for the "Coalesce" function, eh?
This commit is contained in:
Oliver Walters
2020-04-11 22:43:51 +10:00
parent f06078f4ac
commit e86bc4fa6d
2 changed files with 26 additions and 7 deletions

View File

@ -75,8 +75,12 @@ function getAvailableTableFilters(tableKey) {
},
has_stock: {
type: 'bool',
title: '{% trans "Stock Available" %}'
title: '{% trans "Stock available" %}'
},
low_stock: {
type: 'bool',
title: '{% trans "Low stock" %}',
}
};
}