mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Helper funcs for updating part and stock item
This commit is contained in:
parent
24ece1b916
commit
22e9290f54
@ -85,4 +85,12 @@ function getStockLocations(filters={}) {
|
|||||||
|
|
||||||
function getCompanies(filters={}) {
|
function getCompanies(filters={}) {
|
||||||
return inventreeGet('/api/company/', 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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user