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:
@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user