PEP8 pour la méthode total de facture

This commit is contained in:
Pierre-Elliott Bécue 2015-08-24 21:03:06 +02:00
parent 8f871ac166
commit 6142e6ef34

View file

@ -1547,9 +1547,9 @@ class facture(CransLdapObject):
return super(facture, self).__setitem__(attr, value)
def total(self):
total=0
total = 0
for article in self["article"]:
total+=int(article['nombre'])*float(article['pu'])
total += int(article['nombre'])*float(article['pu'])
return total
def crediter(self):