forked from CGM_Public/pretix_original
Add relevant_orderlist exporter (Bugfix #2)
All checks were successful
Build Deploy email notification tool / Apply-Kubernetes-Resources (push) Successful in 1m46s
All checks were successful
Build Deploy email notification tool / Apply-Kubernetes-Resources (push) Successful in 1m46s
Changes in Bugfix #1: register relevant_orderlist as separate data_exporter (forgot to change orderlist to relevant_orderlist) Changes in Bugfix #2: sort name column in row writer correctly (did not match up with headers)
This commit is contained in:
@@ -850,12 +850,12 @@ class RelevantOrderListExporter(MultiSheetListExporter):
|
||||
_("Product ID"), # unwichtig
|
||||
_("Attendee name"), # unwichtig
|
||||
]
|
||||
name_scheme = ( # für unwichtig
|
||||
name_scheme = ( # für unwichtig: Namensschema
|
||||
PERSON_NAME_SCHEMES[self.event.settings.name_scheme]
|
||||
if not self.is_multievent
|
||||
else None
|
||||
)
|
||||
if name_scheme and len(name_scheme["fields"]) > 1: # unwichtig
|
||||
if name_scheme and len(name_scheme["fields"]) > 1: # unwichtig: Namensschema
|
||||
for k, label, w in name_scheme["fields"]:
|
||||
headers.append(_("Attendee name") + ": " + str(label))
|
||||
headers += [
|
||||
@@ -1028,6 +1028,7 @@ class RelevantOrderListExporter(MultiSheetListExporter):
|
||||
row.append("")
|
||||
row += [
|
||||
str(op.item_id), # unwichtig _("Product ID")
|
||||
op.attendee_name, # unwichtig _("Attendee name")
|
||||
]
|
||||
if name_scheme and len(name_scheme["fields"]) > 1: # für unwichtig
|
||||
for k, label, w in name_scheme["fields"]:
|
||||
@@ -1078,7 +1079,6 @@ class RelevantOrderListExporter(MultiSheetListExporter):
|
||||
str(op.tax_rule) if op.tax_rule else ""
|
||||
), # sehr unwichtig_("Tax rule")
|
||||
op.tax_value, # sehr unwichtig_("Tax value")
|
||||
op.attendee_name, # unwichtig _("Attendee name")
|
||||
op.company or "", # sehr unwichtig_("Company")
|
||||
op.street or "", # sehr unwichtig_("Address")
|
||||
op.zipcode or "", # sehr unwichtig_("ZIP code")
|
||||
|
||||
Reference in New Issue
Block a user