Browse Source

correction template cotisation / contribution

Élie Bouttier 7 years ago
parent
commit
07c32e7b4d

+ 2 - 2
adhesions/templates/adhesions/_adhesion_detail.html

@@ -10,8 +10,8 @@
         <p>Adhérent : <a href="{{ adhesion.get_adherent_detail_url }}">{{ adhesion.get_adherent_name }}</a></p>
         {% endif %}
         <p>Numéro d’adhérent : ADT{{ adhesion.id }}</p>
-        {% if adhesion.membership.is_active %}
-        <p>Cotisation : {{ adhesion.membership }}</p>
+        {% if adhesion.membership.get_current_payment %}
+        <p>Cotisation : {{ adhesion.membership.get_current_payment }}</p>
         {% else %}
         <p>Pas de cotisation.</p>
         {% endif %}

+ 2 - 2
services/templates/services/service_detail.html

@@ -16,8 +16,8 @@
     <div class="panel-body">
         <p>Identifiant du service : #{{ service.id }}</p>
         <p>Responsable : {{ service.adhesion }} {{ service.adhesion.adherent }}</p>
-        {% if service.contribution %}
-        <p>Contribution : {{ service.contribution }}</p>
+        {% if service.contribution.get_current_payment %}
+        <p>Contribution : {{ service.contribution.get_current_payment }}</p>
         {% else %}
         <p>Contribution : pas de contribution</p>
         {% endif %}