Skip to content
Permalink
Browse files

[FIX] Account:rounding poorly applied

Rounding each element of the sum decrease the
precision and prevent to reconcile large recordset.

closes #33100

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
  • Loading branch information...
ndeodoo committed May 2, 2019
1 parent 5d6656d commit 0164c9dfcb8f94dd09ffc5a0ce056e4e23308abe
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/account_move.py
@@ -322,7 +322,7 @@ def _amount_residual(self):
else:
date = partial_line.credit_move_id.date if partial_line.debit_move_id == line else partial_line.debit_move_id.date
rate = line.currency_id.with_context(date=date).rate
amount_residual_currency += sign_partial_line * line.currency_id.round(partial_line.amount * rate)
amount_residual_currency += sign_partial_line * partial_line.amount * rate

#computing the `reconciled` field. As we book exchange rate difference on each partial matching,
#we can only check the amount in company currency

0 comments on commit 0164c9d

Please sign in to comment.
You can’t perform that action at this time.