einvoice / EN 16931 / XRechnung rule reference
BR-53
What this rule means and how to fix it
If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
Wenn der Code der Währung der Umsatzsteuerabrechnung (BT-6) angegeben ist, muss der Gesamtbetrag der Umsatzsteuer in der Abrechnungswährung (BT-111) angegeben werden.
Deutsche Fassung: Übersetzung der gleichen BT/BG-Semantik (translation — not the official assert).
- Requires
- If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
- Business terms
BT-6BT-111- Syntax
- Binds the UBL-2.1 Invoice / CreditNote syntax and the UN/CEFACT-CII syntax
- Location (UBL-2.1 path)
cbc:TaxCurrencyCode- Fix
- Add the required element at `cbc:TaxCurrencyCode`: If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
- Fix (Deutsch)
- Ergänzen Sie das erforderliche Element bei `cbc:TaxCurrencyCode`: Wenn der Code der Währung der Umsatzsteuerabrechnung (BT-6) angegeben ist, muss der Gesamtbetrag der Umsatzsteuer in der Abrechnungswährung (BT-111) angegeben werden.
- Severity
- fatal
- Provenance source
en16931-ubl- Provenance assert
If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
The Location above is a UBL-2.1 path, and no UN/CEFACT-CII path for this rule is published here; Fix and Fix (Deutsch), verbatim from remediation_catalog.json and not reworded here; the UN/CEFACT-CII binding of this rule is differentially proven against the official CEN EN 16931 1.3.16 Schematron.
Where to check the fix: paste the corrected invoice into the browser validator at /einvoice/validate/ — it runs this same engine locally in your browser, with no upload, and stops reporting BR-53 once the edit lands.
Korrektur prüfen: Laden Sie die geänderte Rechnung in den Browser-Validator unter /einvoice/validate/ — er führt dieselbe Engine lokal im Browser aus, ohne Upload, und meldet BR-53 nicht mehr, sobald die Korrektur greift.
The same invoice, failing and fixed
Neither block below is hand-written, and neither is an illustration: both are cut verbatim out of corpus/cen-en16931/test/Invoice-unit-UBL/BR-53.xml, the vendored unit test the CEN EN 16931 project ships for this rule. The people who wrote the Schematron wrote these two documents and labelled them <error>BR-53</error> and <success>BR-53</success>. They are published here only because this engine agreed with that labelling: it reported BR-53 for the first document and did not report it for the second, under --profile en16931.
UBL Invoice — fails
The upstream case description: “Trigger error when total VAT amount in accounting currency is missing, and invoice currency != VAT currency”
<Invoice
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">1000</cbc:TaxAmount>
</cac:TaxTotal>
</Invoice>
UBL Invoice — passes
The upstream case description: “Verify that total VAT amount in accounting currency is provided, when invoice currency != VAT currency”
<Invoice
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>NOK</cbc:TaxCurrencyCode>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">100</cbc:TaxAmount>
</cac:TaxTotal>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="NOK">800</cbc:TaxAmount>
</cac:TaxTotal>
</Invoice>
What the engine reports for the failing document
{
"element": "cac:TaxTotal/cbc:TaxAmount/@currencyID",
"field": "cac:TaxTotal/cbc:TaxAmount/@currencyID",
"fix_hint": "Add the required element at `cbc:TaxCurrencyCode`: If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.",
"location": "cbc:TaxCurrencyCode",
"message": "If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.",
"rule": "BR-53",
"severity": "fatal",
"terms": [
"BT-6",
"BT-111"
],
"title": "If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided."
}
Rule ids reported for the failing document: BR-01 BR-02 BR-03 BR-04 BR-06 BR-07 BR-08 BR-10 BR-16 BR-53 BR-CO-15 BR-CO-18. For the corrected document: BR-01 BR-02 BR-03 BR-04 BR-06 BR-07 BR-08 BR-10 BR-16 BR-CO-15 BR-CO-18.
Read that pair of lists honestly. A unit case is not a complete invoice: the upstream suite strips the document down to the elements this rule reads, so the engine also reports every mandatory element the fragment leaves out — 11 other rule ids here. Those are noise for this page. The signal is the difference: BR-53 is reported for the failing document and gone for the corrected one, and it is the only id that moves.
Reproduce it yourself: save the failing block as invoice.xml and run einvoice validate invoice.xml --profile en16931 --format json, or paste it into the browser validator, which runs this same engine locally with no upload. Then apply the edit the passing block shows and run it again.
Everything here is free and open source — pick up whatever helps, at your own pace:
- Licensing — free and open source under Apache-2.0 for everyone, including closed-source embedding: use, modify and ship it inside a commercial product with no fee and no license key.
- German remediation (
--lang de) — the German fix for this rule is in the section above; the CLI surfaces it in place of the English message with--lang de. - Quickstart / free on-ramp — the README, a copy-paste CI-gate recipe, and a 5-minute worked walkthrough.