2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

Display batch code in build output table

This commit is contained in:
Oliver 2022-04-29 13:03:41 +10:00
parent 8fc34a21a6
commit a80465e85c

View File

@ -1135,6 +1135,10 @@ function loadBuildOutputTable(build_info, options={}) {
text = `{% trans "Quantity" %}: ${row.quantity}`; text = `{% trans "Quantity" %}: ${row.quantity}`;
} }
if (row.batch) {
text += ` <small>({% trans "Batch" %}: ${row.batch})</small>`;
}
return renderLink(text, url); return renderLink(text, url);
}, },
sorter: function(a, b, row_a, row_b) { sorter: function(a, b, row_a, row_b) {