BR-53: If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[BR-53]-If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
every $taxcurrency in cbc:TaxCurrencyCode satisfies exists(//cac:TaxTotal/cbc:TaxAmount[@currencyID=$taxcurrency])BR-53 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected. It refers to BT-6, BT-111.
What this rule requires
For UBL, each cbc:TaxCurrencyCode (BT-6, "Umsatzsteuerwährungscode") in /ubl:Invoice or /cn:CreditNote must have at least one matching cac:TaxTotal/cbc:TaxAmount with @currencyID equal to that code; if no cbc:TaxCurrencyCode is present, the rule passes. For CII, if ram:TaxCurrencyCode is absent, the rule passes; if present, ram:TaxTotalAmount/@currencyID must equal ram:TaxCurrencyCode, and the test also requires ram:TaxCurrencyCode not equal ram:InvoiceCurrencyCode. The message text only states the first CII requirement.
How to fix
UBL: When a cbc:TaxCurrencyCode is used, add a cac:TaxTotal/cbc:TaxAmount whose @currencyID matches that code and whose value is the VAT total in accounting currency (BT-111, "Gesamtbetrag der Umsatzsteuer in Buchungswährung"); or remove the cbc:TaxCurrencyCode if it is not needed. CII: When ram:TaxCurrencyCode is used, set ram:TaxTotalAmount/@currencyID to the same currency code, provide the VAT total amount in that currency, and ensure ram:TaxCurrencyCode is different from ram:InvoiceCurrencyCode; otherwise remove ram:TaxCurrencyCode.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to BR-53.
Validate an invoice against these rules · All release changes