Skip to main content
Fixing OCR rounding and total mismatches in e-invoices
Blog

Fixing OCR rounding and total mismatches in e-invoices

2 min readReviewed: November 30, 2026
Share
Markdown export

Unlike paper PDFs where a 1-cent rounding discrepancy often goes unnoticed, EN 16931 and KoSIT validate every subtotal arithmetic rule down to two decimal places.

Understanding why EXTRACTION_SOURCE_TOTAL_MISMATCH triggers keeps bad math out of downloaded XML.

Where cent differences usually enter

When total checks flag a mismatch between extracted line sums and the printed grand total, adjust the line unit price, allowance (BG-20), or prepaid amount (BT-113) directly in the review screen so generated totals match the original PDF to the cent.

  • Document-level discounts or flat rebates printed only as gross reductions without clarifying net allowance vs VAT impact (BG-20).
  • Unit prices rounded to 2 decimals on the PDF while underlying quantity Ă— unit price had 4 decimals.
  • Early-payment cash discount (Skonto) printed cleanly vs Belgian VAT-adjusted Skonto rules, which require matching tax allowance and exempt charge entries.
  • Partial prepayments deducted at the bottom instead of in BT-113 (Paid amounts).

Frequently asked questions

Why does the converter block download when totals diverge?

The converter checks the arithmetic and verifies that the XML matches the invoice data you reviewed. Compare the net amount, VAT and amount due with the original PDF during review. An OCR error can leave those amounts mathematically consistent.

Check your e-invoice file

Upload your XRechnung XML file and see which KoSIT rules fail before you submit it. The validator is free and works without an account.

Published by Invoice-Converter.com (Sine Aspera Ad Astra GmbH, Munich)

Technical guidance follows EN 16931, KoSIT rules, and veraPDF checks. Articles do not replace tax or legal advice.

Related articles