a1d670ca30ebc0ef667ac423be9d0ee6bdd541ad
The efaktur export has rounding issues due to the fact that we need to display both the amount_untaxed and amount_tax rounded to 0 decimals as well as the detail of each line. As the rounding of the sum will most of the time be different to the sum of rounded lines, the government website refuse the resulting file. This fix will try to improve things a bit by: - Avoiding to round the values while we are still manipulating them. - Round the values once when the initial computation is done for the lines. Once all lines have been computed, we will: - Find the difference, if any, between the rounded amount_untaxed and amount_tax and the line totals and round that too. - Update the first line with enough value in the result with that value in order to correct the total - Finally, round the values for representation to two decimals. If we cannot correct it in a single line, the correction is split in multiple lines. Hopefully, these steps will help ensure that the sum of the lines will be equal to the rounded values of the amount_untaxed and amount_tax and thus be correct. Task id # 3420220 closes odoo/odoo#136996 X-original-commit: 65e7446ffad5c87ec44f1012e709606b44f3af39 Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%