forked from odoo/odoo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
l10n_fr_fec: float representation when summing
Before this commit, it may happen that the the grouped account move lines sum will be business-wise "zero" but that its representation in SQL will not be rather, it will be equal to "10^[-high number]" After this commit, we round the sum to the number of digits of the company's currency to see if it is equal to zero, or not. We also need to filter out the specific case of unaffected earnings OPW 1942177 closes odoo#31755 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
- Loading branch information
1 parent
0680b98
commit 3db1bd3
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters