mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "buiding" icon in part list if no stock and none on order
This commit is contained in:
parent
713d7960a8
commit
c0650ba7f4
@ -196,6 +196,9 @@ function loadPartTable(table, url, options={}) {
|
|||||||
} else if (row.on_order) {
|
} else if (row.on_order) {
|
||||||
value = "<span class='label label-primary'>On Order : " + row.on_order + "</span>";
|
value = "<span class='label label-primary'>On Order : " + row.on_order + "</span>";
|
||||||
link = "orders";
|
link = "orders";
|
||||||
|
} else if (row.building) {
|
||||||
|
value = "<span class='label label-info'>Building : " + row.building + "</span>";
|
||||||
|
link = "builds";
|
||||||
} else {
|
} else {
|
||||||
value ="<span class='label label-warning'>No Stock</span>";
|
value ="<span class='label label-warning'>No Stock</span>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user