mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Display units in part table
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user