mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display units in part table
This commit is contained in:
parent
8b2f1b9313
commit
7e6c5fae62
@ -183,6 +183,11 @@ function loadPartTable(table, url, options={}) {
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
||||||
|
if (row.units) {
|
||||||
|
value += ' <i><small>' + row.units + '</small></i>';
|
||||||
|
}
|
||||||
|
|
||||||
return renderLink(value, '/part/' + row.pk + '/stock/');
|
return renderLink(value, '/part/' + row.pk + '/stock/');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user