AF-0076

Der angegebene Wert ist ungültig. Die Gesamtbruttosumme der Rechnung (…) entspricht nicht der Summe der Bruttosummen der Details +/- globale Auf-/Abschläge (…).

In English The invoice total (PayableAmount) does not match the sum of the tax summary: taxable amounts and VAT, other taxes, less the amount paid in advance, plus rounding and amounts below the line.

error: the document is invalid

Why it fails

  • A line or a VAT amount was changed after the total was calculated.
  • PayableAmount was left at 0, or holds the net amount.

How to fix it

Recalculate PayableAmount as the sum of TaxableAmount and TaxAmount of each Tax/TaxItem, plus OtherTax, minus PrepaidAmount, plus RoundingAmount.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.