[intranet/gestionFactures] On affiche aussi les factures des clubs

darcs-hash:20100110145205-bd074-cd8b798315bf3d251ed7ccfcda08c4b502939bf7.gz
This commit is contained in:
Antoine Durand-Gasselin 2010-01-10 15:52:05 +01:00
parent c6cf0e2b77
commit f71288eb94

View file

@ -95,7 +95,10 @@ class main(ModuleBase):
try:
facture = {}
facture['no'] = f.numero()
facture['adherent'] = f.proprietaire().mail()
proprio = f.proprietaire()
if proprio.objectClass == 'club':
proprio = proprio.responsable()
facture['adherent'] = proprio.mail()
facture['montant'] = f.total()
facture['payee'] = f.recuPaiement()
facture['date'] = f.historique()[0].split(',')[0]