BR-NL-5
The rule sets below word this rule differently; each wording is shown with its rule set.
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.
For suppliers in the Netherlands, if the fiscal representative is in the Netherlands, the representative's address (cac:TaxRepresentativeParty/cac:PostalAddress) MUST contain street name (cbc:StreetName), city (cbc:CityName) and postal zone (cbc:PostalZone)
cac:TaxRepresentativeParty/cac:PostalAddress[$s]
(cac:Country/cbc:IdentificationCode != 'NL') or (cbc:StreetName and cbc:CityName and cbc:PostalZone)
Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)
For suppliers in the Netherlands, if the fiscal representative is in the Netherlands, the representative's address (ram:SellerTaxRepresentativeTradeParty) MUST contain street name (ram:LineOne), city (ram:CityName) and postal zone
ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress[$s]
ram:CountryID != 'NL' or ( ram:LineOne and ram:CityName and ram:PostcodeCode)
Checked with Netherlands NLCIUS Invoice (CII)