Skip to content
sinc-LLMBook a 15-minute call

When Two Readings of an Invoice Total Disagree

Compare a PDF text layer with a rendered total, apply the invoice locale, and send unresolved amount or currency conflicts for review.

On this page

By Mario Alexandre · November 27, 2026 · 3 min read

Hold automatic posting when the native PDF text and the rendered invoice disagree on the final amount or currency. Compare both readings against the same field and page region. Use independently verified evidence to resolve the conflict, and leave the payable amount unresolved until a reviewer can support a specific value.

At a synthetic intake desk called Harbor Parts, an invoice looks clear until the accounting system displays a total of EUR 171.20 and the rendered invoice appears to show EUR 177.20. The invoice number agrees across both paths. The amount is the disputed field, and moving the wrong number into the posting queue would turn a reading problem into a payment error.

Preserve what each reader saw

Extract the embedded text layer and separately inspect the rendered page region containing the grand total. Record the two literal strings, page revision, page number, bounding regions, recognized labels, and currency. Some OCR services can use existing PDF text as part of the OCR operation. Check how your tools are configured so the second reading supplies a different observation of the page. Agreement is weaker when both readers use the same text layer. Google Document AI documents native PDF parsing and image-quality scores as separate processor options. Google Cloud Enterprise Document OCR

Resolve the field label first. A correct reading of a subtotal supplies evidence about the subtotal. The posting value here is the grand total marked Gesamtbetrag. Interpret punctuation using an explicit document locale or a verified source convention. Preserve the raw text and store normalized values in integer minor units for a currency with two decimal places. If punctuation or currency is ambiguous, leave the value unresolved rather than infer a locale from the interface language.

Observation in the synthetic dispute Literal value Normalized interpretation
Embedded PDF text for Gesamtbetrag EUR 171,20 EUR 171.20
Image-based reading of the same region EUR 177,20 EUR 177.20
Clearly visible subtotal and tax lines EUR 150,00 and EUR 27,20 EUR 177.20 if those are all the applicable lines
Independently verified supplier record for the same invoice revision EUR 177,20 EUR 177.20

Decide what the reviewer can resolve

Treat the subtotal and tax calculation as corroboration. Check for discounts, credits, shipping, rounding or other lines before interpreting it. In this fixture the independent supplier record keys the amount to the same invoice revision, so a reviewer can choose EUR 177.20, record the supporting evidence, and identify the conflicting text layer for follow-up. If that record is absent and the rendered digit remains unclear, leave the invoice held and ask for a clean copy through the agreed intake route. A higher OCR confidence score alone does not decide which representation carries the payable amount.

Test the route with a clean matching invoice, the disagreement above, an ambiguous separator, and a sample where two readers agree on the wrong subtotal. The last is a control for shared field selection: it should still hold when the tagged source region disagrees with the required grand-total field. For the related problem of selecting the wrong invoice identifier, use a separate field-confusion fixture. sinc-LLM document extraction field confusion tests

If a reviewer changes the amount or currency, retain the original machine readings under the same document revision and store the corrected value as a separate decision. Compare that approved decision with the amount and currency the test destination received.

Require a review record that reopens the page region, explains the locale and names the deciding evidence. Test that an unresolved case stays out of the posting destination even if the OCR step itself reports success.