BR-11
The Buyer postal address shall contain a Buyer country code (BT-55).
Why it fails
- The buyer's address has no
cac:Country/cbc:IdentificationCode(ram:CountryIDin CII).
How to fix it
Add the ISO 3166-1 alpha-2 code of the buyer's country.
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.
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress
normalize-space(cac:Country/cbc:IdentificationCode) != ''
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:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID) != ''
Checked with EN 16931 Invoice (CII)
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress
(cac:Country/cbc:IdentificationCode) != ''
Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)
/rsm:CrossIndustryInvoice
//ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID!=''
Checked with France Factur-X BASIC WL, Factur-X / ZUGFeRD BASIC WL