diff --git a/InvenTree/static/script/inventree/api.js b/InvenTree/static/script/inventree/api.js index ea7ddb00c9..e2bd182845 100644 --- a/InvenTree/static/script/inventree/api.js +++ b/InvenTree/static/script/inventree/api.js @@ -85,4 +85,12 @@ 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); } \ No newline at end of file