corrections pour paypal et mise en place de l'impression
darcs-hash:20061006190234-f46e9-115dab8e0a8c62e5c0ae08d3a1efd1a73769fa65.gz
This commit is contained in:
parent
28a524ffc9
commit
7d4c2f9e68
3 changed files with 117 additions and 16 deletions
|
@ -6,7 +6,7 @@
|
|||
# Description: #
|
||||
# Affiche la liste des factures et l'historique de débits/crédits de l'adhérent. #
|
||||
# Informations: #
|
||||
# Pas d'AJAX ici en principe #
|
||||
# #
|
||||
# Pages: #
|
||||
# index:liste des factures #
|
||||
# historique: historique des débits/crédits #
|
||||
|
@ -39,7 +39,9 @@ class root:
|
|||
'prixTotal':art['pu']*art['nombre'],
|
||||
} for art in f.articles()]
|
||||
facture['montant'] = f.total()
|
||||
facture['paypal'] = f.urlPaypal()
|
||||
facture['paypal'] = f.urlPaypal(useSandbox = cherrypy.config.get("paypal.useSandbox", False),
|
||||
businessMail = cherrypy.config.get("paypal.businessAdress", "paypal@crans.org"))
|
||||
|
||||
facture['payee'] = f.recuPaiement()
|
||||
listeFactures.append(facture)
|
||||
t['listeFactures'] = listeFactures
|
||||
|
@ -55,7 +57,7 @@ class root:
|
|||
def historique(self):
|
||||
adh = self.__ldap.search('uid=' + cherrypy.session['uid'])['adherent'][0]
|
||||
|
||||
lst = [ x for x in adh.historique() if x.split(u' : ',2)[1].startswith(u'credit') or x.split(u' : ',2)[1].startswith(u'debit') ]
|
||||
lst = [ x for x in adh.historique() if x.split(u' : ',1)[1].startswith(u'credit') or x.split(u' : ',1)[1].startswith(u'debit') ]
|
||||
histLst = []
|
||||
for anItem in lst:
|
||||
#11/06/2006 01:40, gdetrez : credit 10.0 Euros [Facture n°1 : Impression]
|
||||
|
@ -75,4 +77,4 @@ class root:
|
|||
'stylesheets' :['cransFactures.css'],
|
||||
'scripts' :[],
|
||||
}
|
||||
historique.exposed = True
|
||||
historique.exposed = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue