mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Cleanup
This commit is contained in:
@ -155,7 +155,7 @@ class InvenTreePart extends InvenTreeModel {
|
||||
// Request stock items for this part
|
||||
Future<void> getStockItems(BuildContext context, {bool showDialog=false}) async {
|
||||
|
||||
InvenTreeStockItem().list(
|
||||
await InvenTreeStockItem().list(
|
||||
context,
|
||||
filters: {
|
||||
"part": "${pk}",
|
||||
|
@ -287,6 +287,11 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
return 'SN ${serialNumber}';
|
||||
}
|
||||
|
||||
// Is an integer?
|
||||
if (quantity.toInt() == quantity) {
|
||||
return '${quantity.toInt()}';
|
||||
}
|
||||
|
||||
return '${quantity}';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user