Reference
Markdown exportBR-12 Sum of Invoice line net amount is required
An invoice shall have the Sum of Invoice line net amount (BT-106), the total of all line net amounts before document allowances, charges and VAT.
Problem Description
ERROR
EN 16931 core business rule (CEN)
Interactive pipeline
Where BR-12 is checked
Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.
BR-12 EN 16931 core rule
Reported in stage 2: EN 16931 rules.
Level error: the report recommends rejecting the invoice.
Stage 2 · What it checks
EN 16931 rules
- The core business terms are present (BR-01 to BR-65).
- Totals add up and related fields agree (BR-CO); codes and decimals are valid (BR-CL, BR-DEC).
- Each VAT category is consistent: S, Z, E, AE, K, G, O, L, M (BR-S, BR-Z, BR-AE, BR-IC …).
Example codes
Typical fix
Recalculate totals and VAT from the line data, and correct the VAT category in the source data.
Solution
Add cac:LegalMonetaryTotal/cbc:LineExtensionAmount equal to the sum of every line’s BT-131 net amount.
Quick actions
Context and Significance
This is an EN 16931 core rule. BT-106 is the starting point of the document totals: the sum of all line net amounts (BR-CO-10). In UBL, cbc:LineExtensionAmount in cac:LegalMonetaryTotal is optional in the schema, so an export that writes only the tax-exclusive and payable totals passes the schema and fails on BR-12. In CII, BT-106 is ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount.
Valid Examples
- BT-106 = 1000.00 — equals the sum of all line net amounts
Invalid Examples
- cac:LegalMonetaryTotal has no cbc:LineExtensionAmount element
Code Examples
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
</cac:LegalMonetaryTotal><cac:LegalMonetaryTotal>
<cbc:TaxExclusiveAmount currencyID="EUR">1000.00</cbc:TaxExclusiveAmount>
<cbc:PayableAmount currencyID="EUR">1190.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>