Rule reference

BR-CO-15 BR-CO-15 requires the invoice total with VAT (BT-112) to equal BT-109 + BT-110

BR-CO-15 requires the invoice total with VAT (BT-112) to equal BT-109 + BT-110. You declared 1.00 for BT-112, but the invoice lines compute to 1785.00 — a difference of -1784.00 EUR. Check whether one of BT-109 or BT-110 is also flagged above; BR-CO-15 often fails only as a consequence.

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-112
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-15",
  "field": "BT-112",
  "severity": "fatal",
  "message": "BR-CO-15 requires the invoice total with VAT (BT-112) to equal BT-109 + BT-110. You declared 1.00 for BT-112, but the invoice lines compute to 1785.00 — a difference of -1784.00 EUR. Check whether one of BT-109 or BT-110 is also flagged above; BR-CO-15 often fails only as a consequence.",
  "fix": "Either correct the line data so it sums to your declared figure, or drop declaredTotals.taxInclusiveAmount 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\": { \"taxInclusiveAmount\": 1785.00 }",
  "docsUrl": "https://attestwire.com/rules/BR-CO-15"
}

A passing value

the shape this field expects
"declaredTotals": { "taxInclusiveAmount": 1785.00 }

The fix

Either correct the line data so it sums to your declared figure, or drop declaredTotals.taxInclusiveAmount 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.