Add order time to check-in list CSV export

This commit is contained in:
Raphael Michel
2021-02-10 09:11:16 +01:00
parent 6b2ab44b26
commit a0f60c71b9
2 changed files with 20 additions and 18 deletions

View File

@@ -426,6 +426,7 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
headers.append(_('Company'))
headers.append(_('Voucher code'))
headers.append(_('Order date'))
headers.append(_('Order time'))
headers.append(_('Requires special attention'))
headers.append(_('Comment'))
headers.append(_('Seat ID'))
@@ -524,6 +525,7 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
row.append(op.company or ia.company)
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('%H:%M:%S'))
row.append(_('Yes') if op.order.checkin_attention or op.item.checkin_attention else _('No'))
row.append(op.order.comment or "")