BR-05
An Invoice shall have an Invoice currency code (BT-5).
Why it fails
- There is no
cbc:DocumentCurrencyCode(ram:InvoiceCurrencyCodein CII).
How to fix it
Add the invoice currency (BT-5) as an ISO 4217 code such as EUR. Every amount's currencyID should match it, apart from a VAT total given in the VAT accounting currency.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
/ubl:Invoice | /cn:CreditNote
normalize-space(cbc:DocumentCurrencyCode) != ''
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
/rsm:CrossIndustryInvoice
normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode) != ''
Checked with EN 16931 Invoice (CII)
/ubl:Invoice | /cn:CreditNote
(cbc:DocumentCurrencyCode) !=''
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)
/rsm:CrossIndustryInvoice
(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode!='')
Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL