diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index 52359ef45e..41c3f5df47 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -1841,14 +1841,20 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { text += `${available_stock}`; } + var icons = ''; + if (available_stock < (required - allocated)) { - text += ``; + icons += ``; } else { - text += ``; + icons += ``; + } + + if (row.on_order && row.on_order > 0) { + icons += ``; } if (available_stock <= 0) { - text += `{% trans "No Stock Available" %}`; + icons += `{% trans "No Stock Available" %}`; } else { var extra = ''; if ((substitute_stock > 0) && (variant_stock > 0)) { @@ -1860,11 +1866,11 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { } if (extra) { - text += ``; + icons += ``; } } - return renderLink(text, url); + return renderLink(text, url) + icons; }, sorter: function(valA, valB, rowA, rowB) {