2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Allow multiple stock items to be checked into a location using table selection

This commit is contained in:
Oliver Walters
2021-01-28 21:47:39 +11:00
parent d61ae8532a
commit 4641123cd8
2 changed files with 25 additions and 0 deletions

View File

@ -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');
});