forked from CGM_Public/pretix_original
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:
@@ -382,8 +382,11 @@ class PDFCheckinList(ReportlabExportMixin, CheckInListMixin, BaseExporter):
|
|||||||
iac = ""
|
iac = ""
|
||||||
|
|
||||||
name = op.attendee_name or (op.addon_to.attendee_name if op.addon_to else '') or ian
|
name = op.attendee_name or (op.addon_to.attendee_name if op.addon_to else '') or ian
|
||||||
if iac:
|
company = op.company or (op.addon_to.company if op.addon_to else '') or iac
|
||||||
name += "<br/>" + iac
|
if company:
|
||||||
|
if name:
|
||||||
|
name += "<br/>"
|
||||||
|
name += company
|
||||||
|
|
||||||
item = "{} ({})".format(
|
item = "{} ({})".format(
|
||||||
str(op.item) + (" – " + str(op.variation.value) if op.variation else ""),
|
str(op.item) + (" – " + str(op.variation.value) if op.variation else ""),
|
||||||
|
|||||||
Reference in New Issue
Block a user