A language model can return an amount that does not appear anywhere on the invoice. That sounds harmless until the amount lands in your ledger. So for every value we read, we attach the exact fragment of the document it came from and the coordinates of that spot on the page. If a number has no backing in the scan, we do not pretend it is fine. It gets a confidence of zero and goes back to a person together with the image crop, so checking it takes seconds instead of a search through the PDF.
The second check is plain arithmetic. Line items have to add up to the net amount, VAT rates to the tax amount, and net plus tax to the gross total. An invoice that fails this test does not slip through quietly. It comes back with a note on what does not add up and where. In practice this is the test that catches most mistakes before anyone sees them in the accounting system.