BR-CO-14: Invoice Total VAT Amount Mismatch (BT-110)
Invoice Total VAT Amount (BT-110 / TaxTotalAmount) MUST strictly equal the exact cent sum of all individual VAT breakdown tax amounts (Σ BT-117 / CalculatedAmount).
Why This Error Happens
On multi-rate German invoices (19% + 7%), legacy templates often map only the first ApplicableTradeTax block into TaxTotalAmount (BT-110), or compute BT-110 independently by summing unrounded per-line VAT amounts.
German 2025–2028 § 14 UStG Regulatory Context
EN 16931 enforces strict hierarchical tax reconciliation: each BG-23 block computes BT-117 from its net basis BT-116, and BT-110 MUST equal Σ BT-117 with zero tolerance for rounding discrepancy.
Invalid XML (Rejected)
FAIL<!-- BG-23: 100.00 @ 19% -> 19.00 VAT; 50.00 @ 7% -> 3.50 VAT (Sum = 22.50) -->
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>150.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>150.00</ram:TaxBasisTotalAmount>
<!-- ERROR (BR-CO-14): 19.00 misses the 3.50 VAT from the 7% breakdown! -->
<ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount>
<ram:GrandTotalAmount>169.00</ram:GrandTotalAmount>
<ram:DuePayableAmount>169.00</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Fixed EN 16931 XML (Compliant)
PASS<ram:ApplicableTradeTax>
<ram:CalculatedAmount>19.00</ram:CalculatedAmount>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:BasisAmount>100.00</ram:BasisAmount>
<ram:CategoryCode>S</ram:CategoryCode>
<ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:ApplicableTradeTax>
<ram:CalculatedAmount>3.50</ram:CalculatedAmount>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:BasisAmount>50.00</ram:BasisAmount>
<ram:CategoryCode>S</ram:CategoryCode>
<ram:RateApplicablePercent>7.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>150.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>150.00</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">22.50</ram:TaxTotalAmount>
<ram:GrandTotalAmount>172.50</ram:GrandTotalAmount>
<ram:DuePayableAmount>172.50</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Step-by-Step Fix Checklist
- Compute BT-117 (CalculatedAmount) for each unique (CategoryCode, Rate) BG-23 group from BT-116 using HALF_UP rounding.
- Set BT-110 (TaxTotalAmount / TaxAmount) strictly to the integer-cent sum Σ BT-117.
- Update BT-112 = BT-109 + BT-110 and BT-115 accordingly so BR-CO-15 and BR-CO-16 remain reconciled.
Frequently Asked Questions
Must TaxTotalAmount (BT-110) carry the currencyID attribute in CII?
Yes. In UN/CEFACT CII, <ram:TaxTotalAmount currencyID="EUR"> is mandatory so parsers distinguish invoice currency VAT (BT-110) from optional accounting currency VAT (BT-111).