mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
Helper funcs for updating part and stock item
This commit is contained in:
@ -86,3 +86,11 @@ function getStockLocations(filters={}) {
|
||||
function getCompanies(filters={}) {
|
||||
return inventreeGet('/api/company/', filters);
|
||||
}
|
||||
|
||||
function updateStockItem(pk, data, final=false) {
|
||||
return inventreeUpdate('/api/stock/' + pk + '/', data, final);
|
||||
}
|
||||
|
||||
function updatePart(pk, data, final=false) {
|
||||
return inventreeUpdate('/api/part/' + pk + '/', data, final);
|
||||
}
|
Reference in New Issue
Block a user