CheckinlistPDF: Export attendee company based on op; fallback to IA (Z#23144201) (#3869)

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Martin Gross
2024-02-09 10:10:45 +01:00
committed by GitHub
parent e261ce7554
commit bf1081071b

View File

@@ -382,8 +382,11 @@ class PDFCheckinList(ReportlabExportMixin, CheckInListMixin, BaseExporter):
iac = ""
name = op.attendee_name or (op.addon_to.attendee_name if op.addon_to else '') or ian
if iac:
name += "<br/>" + iac
company = op.company or (op.addon_to.company if op.addon_to else '') or iac
if company:
if name:
name += "<br/>"
name += company
item = "{} ({})".format(
str(op.item) + (" " + str(op.variation.value) if op.variation else ""),