From 6803f3cf6310b31e6dbb0640414b7663c25869bb Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 13 Oct 2021 20:36:31 +1100 Subject: [PATCH] Display "substitutes available" icon --- InvenTree/templates/js/translated/bom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 51866732ba..66916c193e 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -229,6 +229,10 @@ function loadBomTable(table, options) { html += makePartIcons(row.sub_part_detail); + if (row.substitutes && row.substitutes.length > 0) { + html += makeIconBadge('fa-exchange-alt', '{% trans "Substitutes Available" %}'); + } + // Display an extra icon if this part is an assembly if (sub_part.assembly) { var text = ``;