Skip to content
Snippets Groups Projects
Commit a95bd17a20ec authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Keep total credit positive

Closes #2
parent 3a5e25f83de3
No related branches found
No related tags found
1 merge request!4Keep total credit positive
Pipeline #95866 passed
......@@ -163,7 +163,7 @@
@property
def total_credit(self):
return -sum((t.amount for t in self.transactions if t.amount > 0))
return sum((t.amount for t in self.transactions if t.amount > 0))
class Transaction(_SlotsNone):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment