mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
Fix for stock status change (#5105)
- Recent refactor introduced bug - Update stock.js
This commit is contained in:
parent
256c9cb751
commit
8b6abe1505
@ -3169,7 +3169,11 @@ function setStockStatus(items, options={}) {
|
|||||||
note: {},
|
note: {},
|
||||||
},
|
},
|
||||||
processBeforeUpload: function(data) {
|
processBeforeUpload: function(data) {
|
||||||
data.items = items;
|
let item_pk_values = [];
|
||||||
|
items.forEach(function(item) {
|
||||||
|
item_pk_values.push(item.pk);
|
||||||
|
});
|
||||||
|
data.items = item_pk_values;
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user