From a69c524cd83401c503b5feae240583d69af859f6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 3 Jan 2023 12:25:09 +1100 Subject: [PATCH] Add test description field (#4137) --- InvenTree/templates/js/translated/stock.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index f8e79c92ba..867c71bd0c 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -1375,7 +1375,7 @@ function loadStockTestResultsTable(table, options) { }, { field: 'test_name', - title: '{% trans "Test Name" %}', + title: '{% trans "Test" %}', sortable: true, formatter: function(value, row) { var html = value; @@ -1393,6 +1393,13 @@ function loadStockTestResultsTable(table, options) { return html; } }, + { + field: 'description', + title: '{% trans "Description" %}', + formatter: function(value, row) { + return row.description || row.test_description; + } + }, { field: 'value', title: '{% trans "Value" %}', @@ -1474,6 +1481,7 @@ function loadStockTestResultsTable(table, options) { if (key == row.key) { item.test_name = row.test_name; + item.test_description = row.description; item.required = row.required; if (row.result == null) {