Skip to content
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

openTRANS: line amount rounding issue #1147

Open
mgesing opened this issue Jul 23, 2024 · 0 comments
Open

openTRANS: line amount rounding issue #1147

mgesing opened this issue Jul 23, 2024 · 0 comments

Comments

@mgesing
Copy link
Contributor

mgesing commented Jul 23, 2024

Due to rounding, the unit price multiplied by the quantity of the exported values does not add up to the line amount. Example

Value Export value
Quantity 2 2
Unit price 122.1667 122.17
Line amount 244.3333 244.33

Consider generally exporting unrounded amounts (4 decimal places), which should be ok for the NUMBER format according to the openTRANS specification. See ExportXmlHelper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants