Browse Source

Remove contributor levy arcas

remove-useless-fields-preferences-template
klafyvel 6 years ago
committed by arcas
parent
commit
657ef77bfe
  1. 3
      cotisations/models.py
  2. 4
      cotisations/templates/cotisations/email_subscription_accepted
  3. 3
      cotisations/utils.py
  4. 1
      re2o/contributors.py

3
cotisations/models.py

@ -297,7 +297,8 @@ class Facture(BaseInvoice):
if self.is_subscription() \
and not self.__original_control \
and self.control \
and CotisationsOption.get_cached_value('send_voucher_mail'):
and CotisationsOption.get_cached_value('send_voucher_mail') \
and self.user.is_adherent():
send_mail_voucher(self)
def __str__(self):

4
cotisations/templates/cotisations/email_subscription_accepted

@ -1,6 +1,6 @@
Bonjour {{name}} !
Nous vous informons que votre cotisation auprès de {{asso_name}} a été acceptée. Vous voilà donc membre de l'association.
Nous vous informons que votre cotisation auprès de {{asso_name}} a été acceptée. Vous voilà donc membre de l'association jusqu'au {{ date_end|date:"d/m/Y" }}.
Vous trouverez en pièce jointe un reçu.
@ -11,7 +11,7 @@ L'équipe de {{asso_name}}.
---
Your subscription to {{asso_name}} has just been accepted. You are now a full member of {{asso_name}}.
Your subscription to {{asso_name}} has just been accepted. You are now a full member of {{asso_name}} until {{ date_end|date:"d/m/Y" }}.
You will find with this email a subscription voucher.

3
cotisations/utils.py

@ -117,7 +117,8 @@ def send_mail_voucher(invoice):
invoice.user.surname
),
'asso_email': AssoOption.get_cached_value('contact'),
'asso_name': AssoOption.get_cached_value('name')
'asso_name': AssoOption.get_cached_value('name'),
'date_end': invoice.get_subscription().latest('date_end').date_end,
}
mail = EmailMessage(

1
re2o/contributors.py

@ -14,7 +14,6 @@ CONTRIBUTORS = [
'Matthieu "Lebanni" Michelet',
'Arthur "Grizzly" Grisel-Davy',
'Simon "Rezatoune" Brélivet',
'Sellem Lev-Arcady',
'David "5-1" Sinquin',
'Pierre "Redstorm" Cadart',
'Éloi "Goslig" Alain',

Loading…
Cancel
Save