mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Allows displays of Bill of Materials for assembled parts
This commit is contained in:
parent
f7e045aaeb
commit
e35c4df846
3 changed files with 34 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue