From a80465e85cbdab6093479c97c18a7bb04a547d0c Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 29 Apr 2022 13:03:41 +1000 Subject: [PATCH] Display batch code in build output table --- InvenTree/templates/js/translated/build.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index a8a973d516..719df6ba5c 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -1135,6 +1135,10 @@ function loadBuildOutputTable(build_info, options={}) { text = `{% trans "Quantity" %}: ${row.quantity}`; } + if (row.batch) { + text += ` ({% trans "Batch" %}: ${row.batch})`; + } + return renderLink(text, url); }, sorter: function(a, b, row_a, row_b) {