From 1a4eb3f8706178bcb831ff7c2b431b8166cf030a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 26 Oct 2020 13:24:17 +1100 Subject: [PATCH] Display which parts are "trackable" in a BOM table --- InvenTree/templates/js/bom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/templates/js/bom.js b/InvenTree/templates/js/bom.js index b804453ca2..7686220d8c 100644 --- a/InvenTree/templates/js/bom.js +++ b/InvenTree/templates/js/bom.js @@ -127,6 +127,10 @@ function loadBomTable(table, options) { var url = `/part/${row.sub_part}/`; var html = imageHoverIcon(row.sub_part_detail.thumbnail) + renderLink(row.sub_part_detail.full_name, url); + if (row.sub_part_detail.trackable) { + html += ``; + } + // Display an extra icon if this part is an assembly if (row.sub_part_detail.assembly) { var text = ``;