mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-06 07:18:48 +00:00
Show placeholder for null IPN values in "stock" table (#3737)
- Otherwise can display the text "null"
This commit is contained in:
parent
1f2859d8c9
commit
52071f2c3f
@ -1729,7 +1729,11 @@ function loadStockTable(table, options) {
|
|||||||
switchable: params['part_detail'],
|
switchable: params['part_detail'],
|
||||||
formatter: function(value, row) {
|
formatter: function(value, row) {
|
||||||
var ipn = row.part_detail.IPN;
|
var ipn = row.part_detail.IPN;
|
||||||
|
if (ipn) {
|
||||||
return withTitle(shortenString(ipn), ipn);
|
return withTitle(shortenString(ipn), ipn);
|
||||||
|
} else {
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user