From 0140ffd96ff3b02af2bee81a3a7cbd83d47fb5f0 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 7 May 2022 15:25:26 +1000 Subject: [PATCH] Fix duplicate display of units --- assets/release_notes.md | 1 + lib/inventree/part.dart | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index b9fb849a..508da4bf 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -6,6 +6,7 @@ - Refactor home screen display - Display unread notifications on home screen +- Fixes duplicated display of units when showing stock quantity ### 0.6.2 - April 2022 --- diff --git a/lib/inventree/part.dart b/lib/inventree/part.dart index 723a7e8e..74670120 100644 --- a/lib/inventree/part.dart +++ b/lib/inventree/part.dart @@ -261,10 +261,6 @@ class InvenTreePart extends InvenTreeModel { String q = simpleNumberString(inStock); - if (units.isNotEmpty) { - q += " ${units}"; - } - return q; } @@ -282,10 +278,6 @@ class InvenTreePart extends InvenTreeModel { String get unallocatedStockString { String q = simpleNumberString(unallocatedStock); - if (units.isNotEmpty) { - q += " ${units}"; - } - return q; }