Show current quantity in stocktake form

This commit is contained in:
Oliver Walters 2019-05-16 22:23:31 +10:00
parent 117fd701cd
commit 5ebc7b040a

View File

@ -43,6 +43,7 @@ function updateStock(items, options={}) {
html += '<th>Item</th>'; html += '<th>Item</th>';
html += '<th>Location</th>'; html += '<th>Location</th>';
html += '<th>Quantity</th>'; html += '<th>Quantity</th>';
html += '<th>' + options.action + '</th>';
html += '</thead><tbody>'; html += '</thead><tbody>';
@ -71,6 +72,9 @@ function updateStock(items, options={}) {
} else { } else {
html += '<td><i>No location set</i></td>'; html += '<td><i>No location set</i></td>';
} }
html += '<td>' + item.quantity + '</td>';
html += "<td><input class='form-control' "; html += "<td><input class='form-control' ";
html += "value='" + vCur + "' "; html += "value='" + vCur + "' ";
html += "min='" + vMin + "' "; html += "min='" + vMin + "' ";