From bc3fda71a436dac7129d5f739f4ab0d31bcea627 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 8 Aug 2020 17:11:50 +1000 Subject: [PATCH] Display "depleted" label next to depleted stock --- InvenTree/templates/js/stock.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/templates/js/stock.html b/InvenTree/templates/js/stock.html index adaf07b4f6..f06615f2f5 100644 --- a/InvenTree/templates/js/stock.html +++ b/InvenTree/templates/js/stock.html @@ -468,6 +468,10 @@ function loadStockTable(table, options) { html += ``; } + if (row.quantity <= 0) { + html += `{% trans "Depleted" %}`; + } + return html; } },