[intranet] datetime.strptime est une nouveauté de python 2.5
darcs-hash:20090128153506-bd074-cefbf6b0394cdff8ce9a87ac1ea927e81024c7cc.gz
This commit is contained in:
parent
0abe5fb17f
commit
565e5601c7
1 changed files with 1 additions and 2 deletions
|
@ -98,7 +98,6 @@ class main(ModuleBase):
|
||||||
facture['adherent'] = f.proprietaire().mail()
|
facture['adherent'] = f.proprietaire().mail()
|
||||||
facture['montant'] = f.total()
|
facture['montant'] = f.total()
|
||||||
facture['payee'] = f.recuPaiement()
|
facture['payee'] = f.recuPaiement()
|
||||||
facture['datetime'] = datetime.datetime.strptime (f.historique()[0].split(',')[0], '%d/%m/%Y %H:%M')
|
|
||||||
facture['date'] = f.historique()[0].split(',')[0]
|
facture['date'] = f.historique()[0].split(',')[0]
|
||||||
facture['url'] = f.urlPaypal()
|
facture['url'] = f.urlPaypal()
|
||||||
facture['intitule'] = f.articles()[0]['designation']
|
facture['intitule'] = f.articles()[0]['designation']
|
||||||
|
@ -113,7 +112,7 @@ class main(ModuleBase):
|
||||||
except:
|
except:
|
||||||
crans.cp.log("Facture non affichable : fid=%s" % str(f.numero()), "GESTION FACTURES", 1)
|
crans.cp.log("Facture non affichable : fid=%s" % str(f.numero()), "GESTION FACTURES", 1)
|
||||||
|
|
||||||
liste_factures_affichees.sort(lambda x y : cmp(x['datetime'], y['datetime']))
|
liste_factures_affichees.sort(lambda x,y : cmp(int (y['no']), int(x['no'])))
|
||||||
return liste_factures_affichees
|
return liste_factures_affichees
|
||||||
|
|
||||||
def delFacture(self, fid):
|
def delFacture(self, fid):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue