diff --git a/InvenTree/templates/js/translated/model_renderers.js b/InvenTree/templates/js/translated/model_renderers.js index 186349b5ac..656a3f9f63 100644 --- a/InvenTree/templates/js/translated/model_renderers.js +++ b/InvenTree/templates/js/translated/model_renderers.js @@ -108,7 +108,7 @@ function renderStockItem(name, data, parameters={}, options={}) { stock_detail = `{% trans "Quantity" %}: ${data.quantity}`; } - if (data.batch != null) { + if (data.batch) { stock_detail += ` - {% trans "Batch" %}: ${data.batch}`; } } diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index c13ea41f99..6ba2267b90 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -964,7 +964,7 @@ function adjustStock(action, items, options={}) { quantity = `#${item.serial}`; } - if (item.batch != null) { + if (item.batch) { quantity += ` - {% trans "Batch" %}: ${item.batch}`; }