2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Fixes for stock adjustment

This commit is contained in:
Oliver Walters
2021-04-19 22:07:35 +10:00
parent b8c535560d
commit 27a6025c32
3 changed files with 7 additions and 2 deletions

View File

@ -433,6 +433,8 @@ class InvenTreeStockItem extends InvenTreeModel {
return false;
}
print("Adjust stock: ${endpoint}");
var response = await api.post(
endpoint,
body: {
@ -441,9 +443,12 @@ class InvenTreeStockItem extends InvenTreeModel {
"quantity": "${q}",
},
"notes": notes ?? '',
}
},
expectedStatusCode: 200
);
print("Adjustment completed!");
if (response == null) {
return false;
}