mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 01:36:29 +00:00
Null units fix (#3663)
* Hide units on part page if units are null * Hide null units in stock table * Hide null units in supplier part table * Hide null units in part tables * Template cleanup * Unit test fix
This commit is contained in:
@@ -1764,7 +1764,7 @@ function loadStockTable(table, options) {
|
||||
// Format floating point numbers with this one weird trick
|
||||
val = formatDecimal(value);
|
||||
|
||||
if (row.part_detail) {
|
||||
if (row.part_detail && row.part_detail.units) {
|
||||
val += ` ${row.part_detail.units}`;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user