Skip to content

Rounding fix - #457

Open
spiregarden wants to merge 3 commits into
emaijala:devfrom
spiregarden:rounding-fix
Open

spiregarden wants to merge 3 commits into
emaijala:devfrom
spiregarden:rounding-fix

Conversation

@spiregarden

Copy link
Copy Markdown

I still experienced the rounding error on 2.4.2: The operator bounces some invoices with:
"InvoiceNo 12345678: Checking LegalTotal gave a difference that is too large. -0,01 > 0,005 InvoiceNo 12345678: Total amount is not correct: Total excluding VAT + VAT + rounding amount <> Total including VAT InvoiceNo 12345678: Total amount of invoice is incorrect.:135,00 + 34,42 + 0,00 <> 169,43 (0,01) InvoiceNo 12345678: Invoice validation failed"

Disclaimer: This fix was implemented with AI-assistance, so feel free to reject.

The real world testing is quite limited so far, so I recommend waiting a couple of months before merging.

Copilot AI and others added 3 commits October 9, 2026 22:40
Co-authored-by: spiregarden <79320948+spiregarden@users.noreply.github.com>
Finalize invoice totals rounding in PHP instead of XPath
@spiregarden
spiregarden marked this pull request as ready for review October 27, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants