Perform "addstock" action

This commit is contained in:
Oliver Walters 2020-04-09 22:56:28 +10:00
parent 1ec0b13479
commit 4cafa668a5
4 changed files with 90 additions and 11 deletions

View file

@ -102,7 +102,7 @@ class InvenTreeModel {
print("GET: $addr ${params.toString()}");
var response = await InvenTreeAPI().get(addr, params: params);
var response = await api.get(addr, params: params);
if (response.statusCode != 200) {
print("Error retrieving data");
@ -134,7 +134,7 @@ class InvenTreeModel {
// TODO - Add "timeout"
// TODO - Add error catching
var response = await InvenTreeAPI().get(URL, params:params);
var response = await api.get(URL, params:params);
// A list of "InvenTreeModel" items
List<InvenTreeModel> results = new List<InvenTreeModel>();