odoo/odoo#121559
Created by fw-bot
Merged
at eb0c1a34ea8b950151f1e7d5d7157677f4818e10
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team for help in case of failure.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:16.0-14.0-ubl-do-not-round-price-amount-juvr-1OfB-fw
- head
- d14188863cd040007ad85e583e05b6c036e55bd0
- merged
- 2 years ago by Julien Van Roy (juvr)
odoo/odoo | |
---|---|
14.0 | #120821 |
15.0 | #121508 |
saas-15.2 | #121553 |
16.0 | #121559 |
saas-16.1 | #121567 |
saas-16.2 | #121573 |
saas-16.3 | #121662 |
master | #121649 #121864 |
[FW][FIX] account_edi_ubl_cii: unit prices should not be rounded
When unit prices have more than 2 digits, it is currently not reflected in the UBL formats. Consequently, the line amounts are not equal to the unit price * quantity (assume there is no discount, charges or allowance) and it raises validation errors: "Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount".
To fix this, we no longer round the unit prices.
NB: the decimal accuracy should be set in the settings (otherwise, the default is 2 digits for unit prices).
See https://docs.peppol.eu/poacc/billing/3.0/bis/#_rounding