From 66032ea77af26b8dd70a6172d991615116e07979 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 15 Nov 2021 23:14:13 +1100 Subject: [PATCH] Indicate that a BOM item is inherited in the "uses" table --- InvenTree/templates/js/translated/bom.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 48255e80a2..a4a2007360 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -982,6 +982,15 @@ function loadUsedInTable(table, part_id, options={}) { { field: 'quantity', title: '{% trans "Required Quantity" %}', + formatter: function(value, row) { + var html = value; + + if (row.parent != 'top-level-item') { + html += ` ({% trans "Inherited from parent BOM" %})`; + } + + return html; + } } ] });