1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-05 06:57:27 +02:00

Set ngb parameter of assembly() to remove it from the global BOM and merge

its parts into it parent's global BOM column.
This commit is contained in:
Chris Palmer
2021-02-03 06:21:17 +00:00
parent f7fbbd5fe4
commit 36521cf0b9
6 changed files with 54 additions and 12 deletions

View File

@@ -60,6 +60,7 @@ class BOM:
def __init__(self, name):
self.name = name
self.big = None
self.ngb = False
self.count = 1
self.vitamins = {}
self.printed = {}
@@ -73,6 +74,7 @@ class BOM:
return {
"name" : self.name,
"big" : self.big,
"ngb" : self.ngb,
"count" : self.count,
"assemblies" : assemblies,
"vitamins" : {v : self.vitamins[v].data() for v in self.vitamins},