PEP8 pour la méthode total de facture
This commit is contained in:
parent
8f871ac166
commit
6142e6ef34
1 changed files with 2 additions and 2 deletions
|
@ -1547,9 +1547,9 @@ class facture(CransLdapObject):
|
||||||
return super(facture, self).__setitem__(attr, value)
|
return super(facture, self).__setitem__(attr, value)
|
||||||
|
|
||||||
def total(self):
|
def total(self):
|
||||||
total=0
|
total = 0
|
||||||
for article in self["article"]:
|
for article in self["article"]:
|
||||||
total+=int(article['nombre'])*float(article['pu'])
|
total += int(article['nombre'])*float(article['pu'])
|
||||||
return total
|
return total
|
||||||
|
|
||||||
def crediter(self):
|
def crediter(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue