diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 44f563aa51..ddb20ad1f1 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -79,7 +79,7 @@ function updateStock(items, options={}) { html += "max='" + vMax + "' "; } - html += "type='number' id='q-" + item.pk + "'/>"; + html += "type='number' id='q-update-" + item.pk + "'/>"; html += ''; } @@ -128,7 +128,7 @@ function updateStock(items, options={}) { for (idx = 0; idx < items.length; idx++) { var item = items[idx]; - var q = $(modal).find("#q-" + item.pk).val(); + var q = $(modal).find("#q-update-" + item.pk).val(); stocktake.push({ pk: item.pk, @@ -229,7 +229,7 @@ function moveStockItems(items, options) { inventreePut("/api/stock/move/", { location: location, - 'parts[]': parts, + 'stock': parts, 'notes': notes, }, { @@ -246,7 +246,6 @@ function moveStockItems(items, options) { getStockLocations({}, { success: function(response) { - // Extact part row info var parts = []; @@ -267,21 +266,42 @@ function moveStockItems(items, options) { html += "

Note field must be filled

"; - html += "
The following stock items will be moved: