Add BOM bubble to additional component list (WIP)

This commit is contained in:
Daniel Rojas 2021-10-25 20:35:51 +02:00 committed by KV
parent c7537f000a
commit 4a9a4c8d46

View File

@ -110,6 +110,7 @@ def gv_additional_component_table(component):
rows.append( rows.append(
Tr( Tr(
[ [
Td(bom_bubble(subitem.bom_id)),
Td(f"{subitem.bom_qty}"), Td(f"{subitem.bom_qty}"),
Td(f"{subitem.qty.unit if subitem.qty.unit else 'x'}"), Td(f"{subitem.qty.unit if subitem.qty.unit else 'x'}"),
Td(f"{subitem.description}"), Td(f"{subitem.description}"),
@ -117,7 +118,7 @@ def gv_additional_component_table(component):
) )
) )
return Table(rows) return Table(rows, border=0)
def calculate_node_bgcolor(component, harness_options): def calculate_node_bgcolor(component, harness_options):