forked from CGM_Public/pretix_original
Include attention flag and comment in order and check-in list exports
This commit is contained in:
@@ -109,6 +109,8 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
|
|
||||||
headers.append(_('Invoice numbers'))
|
headers.append(_('Invoice numbers'))
|
||||||
headers.append(_('Sales channel'))
|
headers.append(_('Sales channel'))
|
||||||
|
headers.append(_('Requires special attention'))
|
||||||
|
headers.append(_('Comment'))
|
||||||
|
|
||||||
yield headers
|
yield headers
|
||||||
|
|
||||||
@@ -179,6 +181,8 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
|
|
||||||
row.append(', '.join([i.number for i in order.invoices.all()]))
|
row.append(', '.join([i.number for i in order.invoices.all()]))
|
||||||
row.append(order.sales_channel)
|
row.append(order.sales_channel)
|
||||||
|
row.append(_('Yes') if order.checkin_attention else _('No'))
|
||||||
|
row.append(order.comment or "")
|
||||||
yield row
|
yield row
|
||||||
|
|
||||||
def iterate_fees(self, form_data: dict):
|
def iterate_fees(self, form_data: dict):
|
||||||
|
|||||||
@@ -331,6 +331,8 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
|
|||||||
headers.append(_('Company'))
|
headers.append(_('Company'))
|
||||||
headers.append(_('Voucher code'))
|
headers.append(_('Voucher code'))
|
||||||
headers.append(_('Order date'))
|
headers.append(_('Order date'))
|
||||||
|
headers.append(_('Requires special attention'))
|
||||||
|
headers.append(_('Comment'))
|
||||||
yield headers
|
yield headers
|
||||||
|
|
||||||
for op in qs:
|
for op in qs:
|
||||||
@@ -394,6 +396,8 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
|
|||||||
row.append(ia.company)
|
row.append(ia.company)
|
||||||
row.append(op.voucher.code if op.voucher else "")
|
row.append(op.voucher.code if op.voucher else "")
|
||||||
row.append(op.order.datetime.astimezone(self.event.timezone).strftime('%Y-%m-%d'))
|
row.append(op.order.datetime.astimezone(self.event.timezone).strftime('%Y-%m-%d'))
|
||||||
|
row.append(_('Yes') if op.order.checkin_attention else _('No'))
|
||||||
|
row.append(op.order.comment or "")
|
||||||
yield row
|
yield row
|
||||||
|
|
||||||
def get_filename(self):
|
def get_filename(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user