mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add test description field (#4137)
This commit is contained in:
parent
2f7436d894
commit
a69c524cd8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user