Add note attribute to additional components

This commit is contained in:
Daniel Rojas 2021-03-23 11:04:33 +01:00
parent e61d14ba43
commit 53fefa8f3c
2 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ class AdditionalComponent:
qty: float = 1
unit: Optional[str] = None
qty_multiplier: Union[ConnectorMultiplier, CableMultiplier, None] = None
note: Optional[str] = None
@property
def description(self) -> str:

View File

@ -41,7 +41,7 @@ def get_additional_component_table(harness: "Harness", component: Union[Connecto
if harness.show_part_numbers:
columns.append(f'P/N: {part.pn}' if part.pn else '')
columns.append(f'{manufacturer_str}' if manufacturer_str else '')
# TODO: Add note column as proposed in #222
columns.append(f'{part.note}' if part.note else '')
rowstr = '<tr>' + ''.join([f'<td align="left" balign="left">{col}</td>' for col in columns]) + '</tr>'
rows.append(rowstr)