diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index 1c0fa1460d..c4c0d115b5 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -617,7 +617,12 @@ function partStockLabel(part, options={}) { return `{% trans "Building" %}: ${part.building} ${units}`; } else { // There is no stock - return `{% trans "No Stock" %}`; + var unit_badge = ''; + if (units) { + // show units next to [No Stock] badge + unit_badge = `{% trans "Unit" %}: ${units} `; + } + return `${unit_badge}{% trans "No Stock" %}`; } }