Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
b61db16d
Verified
Commit
b61db16d
authored
Feb 06, 2019
by
Sébastiaan Versteeg
Browse files
Add membership type to payment notes
parent
23b79eb4
Changes
1
Show whitespace changes
Inline
Side-by-side
website/registrations/services.py
View file @
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment