2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Allows displays of Bill of Materials for assembled parts

This commit is contained in:
Oliver Walters
2022-07-05 16:59:32 +10:00
parent f7e045aaeb
commit e35c4df846
3 changed files with 34 additions and 14 deletions

View File

@ -303,9 +303,6 @@ class InvenTreePart extends InvenTreeModel {
// Get the number of units being build for this Part
double get building => double.tryParse(jsondata["building"].toString()) ?? 0;
// Get the number of BOM items in this Part (if it is an assembly)
int get bomItemCount => (jsondata["bom_items"] ?? 0) as int;
// Get the number of BOMs this Part is used in (if it is a component)
int get usedInCount => (jsondata["used_in"] ?? 0) as int;