mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
More cleanup
This commit is contained in:
parent
d2ce3fadf1
commit
83e29777c2
12 changed files with 23 additions and 60 deletions
|
|
@ -188,11 +188,11 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
"result": result.toString(),
|
||||
};
|
||||
|
||||
if (value != null && !value.isEmpty) {
|
||||
if (value != null && value.isNotEmpty) {
|
||||
data["value"] = value;
|
||||
}
|
||||
|
||||
if (notes != null && !notes.isEmpty) {
|
||||
if (notes != null && notes.isNotEmpty) {
|
||||
data["notes"] = notes;
|
||||
}
|
||||
|
||||
|
|
@ -211,8 +211,6 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
// Check that the HTTP status code is HTTP_201_CREATED
|
||||
return _uploadResponse.statusCode == 201;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
String get uid => jsondata['uid'] ?? '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue