Correctly determine qty

This commit is contained in:
Daniel Rojas 2021-03-23 11:14:49 +01:00
parent 53fefa8f3c
commit 0dc02fe8b5

View File

@ -36,7 +36,7 @@ def get_additional_component_table(harness: "Harness", component: Union[Connecto
columns = [] columns = []
if harness.show_bom_item_numbers: if harness.show_bom_item_numbers:
columns.append(bom_bubble(id)) columns.append(bom_bubble(id))
columns.append(f'{part.qty}' + (f' {part.unit}' if part.unit else ' x')) columns.append(f'{part.qty * component.get_qty_multiplier(part.qty_multiplier)}' + (f' {part.unit}' if part.unit else ' x'))
columns.append(f'{part.type}') columns.append(f'{part.type}')
if harness.show_part_numbers: if harness.show_part_numbers:
columns.append(f'P/N: {part.pn}' if part.pn else '') columns.append(f'P/N: {part.pn}' if part.pn else '')