Add note attribute to additional components
This commit is contained in:
parent
e61d14ba43
commit
53fefa8f3c
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user