BR-NL-4

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

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.

Message

For suppliers in the Netherlands, if the customer is in the Netherlands, the customer address (cac:AccountingCustomerParty/cac:Party/cac:PostalAddress) MUST contain the street name (cbc:StreetName), the city (cbc:CityName) and the postal zone (cbc:PostalZone)

Context
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress[$s]
Test
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)

Message

For suppliers in the Netherlands, if the customer is in the Netherlands, the customer address (ram:BuyerTradeParty/PostalTradeAddres) MUST contain street name (ram:LineOne), city (ram:CityName) and postal zone (ram:PostcodeCode)

Context
ram:BuyerTradeParty/ram:PostalTradeAddress[$s]
Test
ram:CountryID != 'NL' or ( ram:LineOne and ram:CityName and ram:PostcodeCode)

Checked with Netherlands NLCIUS Invoice (CII)