2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-08-08 05:20:52 +00:00

Enable basic ordering for BOM list

This commit is contained in:
Oliver Walters
2022-07-06 09:49:40 +10:00
parent c878f37ec2
commit 6c1099356f
3 changed files with 29 additions and 8 deletions

View File

@@ -34,6 +34,9 @@ class InvenTreeBomItem extends InvenTreeModel {
};
}
// Extract the 'reference' value associated with this BomItem
String get reference => (jsondata["reference"] ?? "") as String;
// Extract the 'quantity' value associated with this BomItem
double get quantity => double.tryParse(jsondata["quantity"].toString()) ?? 0;