SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL Official EN 16931 / Peppol / CIUS Rule BT/BG Fields: BT-6

BR-CL-05 — E-Invoice Validation Rule & Fix

Fixture ID: badTaxCurrency · XPath: /ubl:Invoice/cbc:TaxCurrencyCode

1. Why This Rule Triggers (Diagnostic Message)

The VAT accounting currency code (BT-6) must be an ISO 4217 alphabetic code, but "SEKK" is not one. It is the same list BT-5 is drawn from and it is checked just as strictly — three letters is a shape, not a membership. This code is also load-bearing beyond its own field: the generator writes it into the @currencyID of the second cac:TaxTotal, and BR-53 and BR-DEC-15 both find BT-111 by matching that attribute against this value, so a code that fails here takes those two rules down with it.

2. How to Fix BR-CL-05

Set vatAccountingCurrency to the ISO 4217 alpha-3 code in upper case — "PLN", "SEK", "DKK", "CZK", "HUF", "RON". Use the code, never the symbol or the name, and only set the field at all when VAT is accounted for in a currency other than the invoice currency.

3. Valid Code / Payload Example

"vatAccountingCurrency": "PLN", "taxAmountInAccountingCurrency": 1218.45
Test & Validate XML / JSON in Live SchemaGuard Validator →