diff --git a/InvenTree/templates/js/stock.js b/InvenTree/templates/js/stock.js index 6c7bc3d873..f1926e9c31 100644 --- a/InvenTree/templates/js/stock.js +++ b/InvenTree/templates/js/stock.js @@ -635,6 +635,7 @@ function loadStockTable(table, options) { table, [ '#stock-print-options', + '#stock-barcode-options', '#stock-options', ] ); @@ -700,6 +701,18 @@ function loadStockTable(table, options) { printTestReports(items); }) + $('#multi-item-barcode-scan-into-location').click(function() { + var selections = $('#stock-table').bootstrapTable('getSelections'); + + var items = []; + + selections.forEach(function(item) { + items.push(item.pk); + }) + + scanItemsIntoLocation(items); + }); + $('#multi-item-stocktake').click(function() { stockAdjustment('count'); }); diff --git a/InvenTree/templates/stock_table.html b/InvenTree/templates/stock_table.html index 0542afef4d..b5b61d1ed3 100644 --- a/InvenTree/templates/stock_table.html +++ b/InvenTree/templates/stock_table.html @@ -19,6 +19,18 @@ {% endif %} + {% settings_value 'BARCODE_ENABLE' as barcodes %} + {% if barcodes %} + +
+ + +
+ {% endif %}