mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Merge pull request #120 from inventree/units-fix
Fix duplicate display of units
This commit is contained in:
commit
97b4eefc13
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
- Refactor home screen display
|
- Refactor home screen display
|
||||||
- Display unread notifications on home screen
|
- Display unread notifications on home screen
|
||||||
|
- Fixes duplicated display of units when showing stock quantity
|
||||||
|
|
||||||
### 0.6.2 - April 2022
|
### 0.6.2 - April 2022
|
||||||
---
|
---
|
||||||
|
@ -261,10 +261,6 @@ class InvenTreePart extends InvenTreeModel {
|
|||||||
|
|
||||||
String q = simpleNumberString(inStock);
|
String q = simpleNumberString(inStock);
|
||||||
|
|
||||||
if (units.isNotEmpty) {
|
|
||||||
q += " ${units}";
|
|
||||||
}
|
|
||||||
|
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,10 +278,6 @@ class InvenTreePart extends InvenTreeModel {
|
|||||||
String get unallocatedStockString {
|
String get unallocatedStockString {
|
||||||
String q = simpleNumberString(unallocatedStock);
|
String q = simpleNumberString(unallocatedStock);
|
||||||
|
|
||||||
if (units.isNotEmpty) {
|
|
||||||
q += " ${units}";
|
|
||||||
}
|
|
||||||
|
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user