diff --git a/objets.py b/objets.py index 0088a0f..0053b06 100644 --- a/objets.py +++ b/objets.py @@ -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):