Display units in part table

This commit is contained in:
Oliver Walters 2019-11-19 10:39:40 +11:00
parent 8b2f1b9313
commit 7e6c5fae62

View File

@ -183,6 +183,11 @@ function loadPartTable(table, url, options={}) {
sortable: true,
formatter: function(value, row, index, field) {
if (value) {
if (row.units) {
value += ' <i><small>' + row.units + '</small></i>';
}
return renderLink(value, '/part/' + row.pk + '/stock/');
}
else {