ajout d'un log pour la suppression d'une cotisation + affichage du montant dans la suppression d'une cotisation
This commit is contained in:
parent
ac886f890c
commit
067cb4bcbc
@ -469,7 +469,7 @@ class CotisationDeleteController(AuthenticatedRestController):
|
||||
def post(self, residence, member_uid, cotisation_cn):
|
||||
residence_dn = Residences.get_dn_by_name(self.user, residence)
|
||||
member = Member.get_by_uid(self.user, residence_dn, member_uid)
|
||||
print "WTF"
|
||||
|
||||
if member is None:
|
||||
raise Exception('membre inconnu')
|
||||
#end if
|
||||
@ -484,6 +484,8 @@ class CotisationDeleteController(AuthenticatedRestController):
|
||||
|
||||
self.user.ldap_bind.delete_entry_subtree(cotisation.dn)
|
||||
|
||||
print("[LOG] suppression cotisation (" + cotisation.get('x-amountPaid').first() + "EUR) pour l'utilisateur "+ member.dn + " par l'admin "+ self.user.attrs.dn)
|
||||
|
||||
redirect("/edit/member/"+residence+"/"+member_uid)
|
||||
|
||||
#end def
|
||||
|
@ -42,7 +42,7 @@
|
||||
<div class="section">
|
||||
<div py:for="cotisation in cotisations">
|
||||
<span class="item_name"></span>
|
||||
${cotisation.cn.first()} - ${cotisation.get('x-action-user-info').first()}
|
||||
${cotisation.cn.first()} - ${cotisation.get('x-action-user-info').first()} (${cotisation.get('x-amountPaid').first()})
|
||||
<form method="post" action="/edit/cotisation/delete" style="display:inline;" py:if="cotisation.get('x-paymentCashed').first() != 'TRUE'">
|
||||
<input type="hidden" name="residence" value="${residence}" />
|
||||
<input type="hidden" name="member_uid" value="${member_ldap.uid.first()}" />
|
||||
@ -52,7 +52,7 @@
|
||||
</div>
|
||||
<div py:for="cotisation in extras">
|
||||
<span class="item_name"></span>
|
||||
${cotisation.cn.first()} - ${cotisation.get('x-action-user-info').first()}
|
||||
${cotisation.cn.first()} - ${cotisation.get('x-action-user-info').first()} (${cotisation.get('x-amountPaid').first()})
|
||||
<form method="post" action="/edit/cotisation/delete" style="display:inline;" py:if="cotisation.get('x-paymentCashed').first() != 'TRUE'">
|
||||
<input type="hidden" name="residence" value="${residence}" />
|
||||
<input type="hidden" name="member_uid" value="${member_ldap.uid.first()}" />
|
||||
|
Loading…
Reference in New Issue
Block a user