Commit a12ad0db authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'registration-payment-notes' into 'master'

Add membership type to payment notes

See merge request !1147
parents 6b47dd02 b61db16d
......@@ -172,12 +172,12 @@ def _create_payment_for_entry(entry):
:rtype: Payment
"""
amount = settings.MEMBERSHIP_PRICES[entry.length]
notes = 'Membership registration'
notes = f'Membership registration. {entry.get_membership_type_display()}.'
try:
renewal = entry.renewal
membership = renewal.member.latest_membership
notes = 'Membership renewal'
notes = f'Membership renewal. {entry.get_membership_type_display()}.'
# Having a latest membership which has an until date implies that this
# membership lasts/lasted till the end of the lecture year
# This means it's possible to renew the 'year' membership
......
Markdown is supported
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