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

Display expiry status on StockItem page

- Also adds ability to filter Stock table by expired status
This commit is contained in:
Oliver Walters
2021-01-04 00:21:47 +11:00
parent 39b9dcfec9
commit a0c95579b4
3 changed files with 24 additions and 0 deletions

View File

@ -532,6 +532,10 @@ function loadStockTable(table, options) {
html += makeIconBadge('fa-user', '{% trans "Stock item assigned to customer" %}');
}
if (row.expired) {
html += makeIconBadge('fa-stopwatch icon-red', '{% trans "Stock item has expired" %}');
}
if (row.allocated) {
html += makeIconBadge('fa-bookmark', '{% trans "Stock item has been allocated" %}');
}