mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Merge pull request #126 from aavenel/fix-settle-rounding
Bugfix rounding settle algorithm
This commit is contained in:
commit
0e21449191
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Project(db.Model):
|
|||
debts.append({"person": person, "balance": -balance[person.id]})
|
||||
# Try and find exact matches
|
||||
for credit in credits:
|
||||
match = self.exactmatch(credit["balance"], debts)
|
||||
match = self.exactmatch(round(credit["balance"], 2), debts)
|
||||
if match:
|
||||
for m in match:
|
||||
transactions.append({"ower": m["person"], "receiver": credit["person"], "amount": m["balance"]})
|
||||
|
|
Loading…
Reference in a new issue