2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00
This commit is contained in:
Oliver
2021-07-26 17:28:16 +10:00
parent d07b704014
commit 2bdadc2140
6 changed files with 15 additions and 47 deletions

View File

@ -296,9 +296,7 @@ class InvenTreeModel {
// Create a new object (of the current class type
InvenTreeModel obj = createFromJson(d);
if (obj != null) {
results.add(obj);
}
results.add(obj);
}
return results;

View File

@ -476,14 +476,7 @@ class InvenTreeStockItem extends InvenTreeModel {
expectedStatusCode: 200
);
print("Adjustment completed!");
if (response == null) {
return false;
}
// Stock adjustment succeeded!
return true;
return response.isValid();
}
Future<bool> countStock(BuildContext context, double q, {String? notes}) async {