[intranet] affichage amélioré des factures
darcs-hash:20090128150605-bd074-feb75368d7dd249397474e0e5d8741cd1334464d.gz
This commit is contained in:
parent
6f16c368d1
commit
636e75038f
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,9 @@ 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['url'] = f.urlPaypal()
|
||||||
facture['intitule'] = f.articles()[0]['designation']
|
facture['intitule'] = f.articles()[0]['designation']
|
||||||
facture['details'] = [
|
facture['details'] = [
|
||||||
{
|
{
|
||||||
|
@ -110,6 +113,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']))
|
||||||
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