Rule reference

BR-CO-14 BR-CO-14 requires the invoice total VAT amount (BT-110) to equal Σ VAT category tax amounts (BT-117)

BR-CO-14 requires the invoice total VAT amount (BT-110) to equal Σ VAT category tax amounts (BT-117). You declared 1.00 for BT-110, but the invoice lines compute to 285.00 — a difference of -284.00 EUR. VAT is computed per category-and-rate group and rounded there (BR-CO-17), then summed. Computing VAT on the document total instead of per group is the usual cause of a one-cent break.

This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.

Business term
BT-110
Severity
fatal

What the library returns

The exact object in result.errors when this rule fires. Generated by running @attestwire/en16931, not transcribed:

TeachingError
{
  "rule": "BR-CO-14",
  "field": "BT-110",
  "severity": "fatal",
  "message": "BR-CO-14 requires the invoice total VAT amount (BT-110) to equal Σ VAT category tax amounts (BT-117). You declared 1.00 for BT-110, but the invoice lines compute to 285.00 — a difference of -284.00 EUR. VAT is computed per category-and-rate group and rounded there (BR-CO-17), then summed. Computing VAT on the document total instead of per group is the usual cause of a one-cent break.",
  "fix": "Either correct the line data so it sums to your declared figure, or drop declaredTotals.taxAmount and let the library compute it. Note that EN 16931 sums *rounded* line amounts: round each line to 2 decimals first, then add — rounding only the final sum drifts by a cent or two on long invoices.",
  "example": "\"declaredTotals\": { \"taxAmount\": 285.00 }",
  "docsUrl": "https://attestwire.com/rules/BR-CO-14"
}

A passing value

the shape this field expects
"declaredTotals": { "taxAmount": 285.00 }

The fix

Either correct the line data so it sums to your declared figure, or drop declaredTotals.taxAmount and let the library compute it. Note that EN 16931 sums *rounded* line amounts: round each line to 2 decimals first, then add — rounding only the final sum drifts by a cent or two on long invoices.

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.