Commit 4bb6a802 authored by Jelle Besseling's avatar Jelle Besseling
Browse files

Merge branch 'fix/events-payment-csv-export' into 'master'

Fix events payment status export in csv

Closes #870

See merge request !1246
parents 1a71d516 3ed23064
...@@ -174,10 +174,8 @@ class EventRegistrationsExport(View, PermissionRequiredMixin): ...@@ -174,10 +174,8 @@ class EventRegistrationsExport(View, PermissionRequiredMixin):
_('Date cancelled'): cancelled, _('Date cancelled'): cancelled,
} }
if event.price > 0: if event.price > 0:
if registration.payment == registration.PAYMENT_CASH: if registration.is_paid():
data[_('Paid')] = _('Cash') data[_('Paid')] = registration.payment.get_type_display()
elif registration.payment == registration.PAYMENT_CARD:
data[_('Paid')] = _('Pin')
else: else:
data[_('Paid')] = _('No') data[_('Paid')] = _('No')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment