All error codes · Error code · EN 16931 (CEN)
BR-CO-17 VAT per rate rounded wrongly
The VAT of a rate (BT-117) must be that rate's taxable amount (BT-116) times the rate, rounded to two decimals.
The rule's official text
VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.
An error: the validator rejects the invoice, and recipients may refuse it.
What usually causes it
- VAT was rounded per line and added up, which drifts by a cent.
- The taxable amount includes allowances or charges, but the VAT was computed without them.
How to fix it
- Compute the VAT once per rate from the sum of that rate's lines (minus allowances, plus charges) and round only then.
- Then check BR-S-08 and BR-CO-14, which depend on the same amounts.
Where it sits in the XML
- UBL
cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount
Fixed? Check the invoice again.
Free, no account, with the KoSIT validator. The file isn't stored.
Related error codes
Invoices that get through. From the hours you tracked.
Try it free for 14 daysdocket writes every invoice as a ZUGFeRD PDF and an XRechnung at once, following exactly these rules. More on e-invoicing in docket.