mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Cleanup
This commit is contained in:
@ -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;
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user