-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoice rounding problem #31
Comments
@andras-minicrm 6733,945×1,19=8013,39455. Rounding this will lead to 8013,39. How did you determine it should be 8013.40? |
Yea, you are probably right, based on the error message 6733.95 + 1279.45 = (8013.40) should be equal cbc:TaxInclusiveAmount (8013.39) . Probably the TaxAmount should be 1279.44 to get the correct 8013.39 value. |
Hello @andras-minicrm, Hmm, given BR-CO-15 is a Business Rule from the EN 16931, I'm guessing the final roundings performed by this library need to be updated to comply with the standard. I'll investigate further and prepare a new implementation as soon as I have some spare time. |
- Updated InvoiceTotalsTest class - Added "peppol-rounding.xml" integration test sample > Related to #31
Hello @andras-minicrm, This should be fixed now. Give it a try to make sure it works:
|
Hello @josemmo, It seems the fix works, thanks! |
Hi!
It seems there is rounding problem with the xml generator:
[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
example data input:
Which generates this nodes:
The final amounts should be 8013.40, not 8013.39
And here is the generated xml:
factura-102-o2u-2022-e-ron-00066.txt
The text was updated successfully, but these errors were encountered: