mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Fix rounding error in balances
This commit is contained in:
parent
229fe41a0c
commit
9236c13213
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ class Bill(db.Model):
|
||||||
def pay_each(self):
|
def pay_each(self):
|
||||||
"""Compute what each person has to pay"""
|
"""Compute what each person has to pay"""
|
||||||
if self.owers:
|
if self.owers:
|
||||||
return round(self.amount / len(self.owers), 2)
|
return self.amount / len(self.owers)
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue