diff --git a/lib/inventree/stock.dart b/lib/inventree/stock.dart index c681fcab..4bc44663 100644 --- a/lib/inventree/stock.dart +++ b/lib/inventree/stock.dart @@ -57,6 +57,7 @@ class InvenTreeStockItem extends InvenTreeModel { static const int DESTROYED = 60; static const int REJECTED = 65; static const int LOST = 70; + static const int RETURNED = 85; String statusLabel(BuildContext context) { @@ -73,6 +74,8 @@ class InvenTreeStockItem extends InvenTreeModel { return I18N.of(context).rejected; case LOST: return I18N.of(context).lost; + case RETURNED: + return I18N.of(context).returned; default: return status.toString(); } diff --git a/lib/l10n b/lib/l10n index 807a0191..2fe34df1 160000 --- a/lib/l10n +++ b/lib/l10n @@ -1 +1 @@ -Subproject commit 807a0191b4b68a7887ee366dfbe58e2d009207f7 +Subproject commit 2fe34df1ddb2b5512003981dbdaf3f7b3dbf2ee9 diff --git a/lib/widget/search.dart b/lib/widget/search.dart index 7ee20242..c2ed7094 100644 --- a/lib/widget/search.dart +++ b/lib/widget/search.dart @@ -17,7 +17,7 @@ import '../api.dart'; class PartSearchDelegate extends SearchDelegate { - final key = GlobalKey(); + final partSearchKey = GlobalKey(); BuildContext context; @@ -203,7 +203,7 @@ class PartSearchDelegate extends SearchDelegate { class StockSearchDelegate extends SearchDelegate { - final key = GlobalKey(); + final stockSearchKey = GlobalKey(); final BuildContext context;