Rule reference

BR-CO-10 BR-CO-10 requires the sum of invoice line net amounts (BT-106) to equal Σ BT-131

BR-CO-10 requires the sum of invoice line net amounts (BT-106) to equal Σ BT-131. You declared 1.00 for BT-106, but the invoice lines compute to 1500.00 — a difference of -1499.00 EUR. This is a pure addition check, so a mismatch means either a line is missing from your total or a line amount was rounded differently.

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-106
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-10",
  "field": "BT-106",
  "severity": "fatal",
  "message": "BR-CO-10 requires the sum of invoice line net amounts (BT-106) to equal Σ BT-131. You declared 1.00 for BT-106, but the invoice lines compute to 1500.00 — a difference of -1499.00 EUR. This is a pure addition check, so a mismatch means either a line is missing from your total or a line amount was rounded differently.",
  "fix": "Either correct the line data so it sums to your declared figure, or drop declaredTotals.lineExtensionAmount 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\": { \"lineExtensionAmount\": 1500.00 }",
  "docsUrl": "https://attestwire.com/rules/BR-CO-10"
}

A passing value

the shape this field expects
"declaredTotals": { "lineExtensionAmount": 1500.00 }

The fix

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