mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for javascript
- If location not set for StockItem, display special text
This commit is contained in:
parent
053e9c9795
commit
38fa89d1da
@ -65,7 +65,12 @@ function updateStock(items, options={}) {
|
||||
html += '<tr>';
|
||||
|
||||
html += '<td>' + item.part.name + '</td>';
|
||||
html += '<td>' + item.location.name + '</td>';
|
||||
|
||||
if (item.location) {
|
||||
html += '<td>' + item.location.name + '</td>';
|
||||
} else {
|
||||
html += '<td><i>No location set</i></td>';
|
||||
}
|
||||
html += "<td><input class='form-control' ";
|
||||
html += "value='" + vCur + "' ";
|
||||
html += "min='" + vMin + "' ";
|
||||
|
Loading…
Reference in New Issue
Block a user