# BR-NL-10

Source: https://xmlvalid.com/rules/BR-NL-10

> For suppliers in the Netherlands, if the customer is in the Netherlands, the customer's legal entity identifier (cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID) MUST be either a KVK (schemeID=0106) or OIN number (schemeID=0190)

- Level: error
- Rule sets: SI-UBL 2.0 rules (NLCIUS, UBL) 2.0.3.13, SI-UBL 2.0 G-account rules (NLCIUS, UBL) 1.0.2.13
- Context: `cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity[$s]`
- Test: `(not(//cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'NL') or contains(concat(' ', string-join(//cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID, ' '), ' '), ' 0106 ') or contains(concat(' ', string-join(//cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID, ' '), ' '), ' 0190 ') ) and (not(cbc:CompanyID) or (cbc:CompanyID/normalize-space(.) != ''))`

> For suppliers in the Netherlands, if the customer is in the Netherlands, the customer's legal entity identifier (/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID) MUST be either a KVK (schemeID=0106) or OIN number (schemeID=0190)

- Level: error
- Rule sets: NLCIUS rules (CII) 1.0.3.13
- Context: `ram:BuyerTradeParty[$s]`
- Test: `(not(ram:PostalTradeAddress/ram:CountryID = 'NL') or contains(concat(' ', string-join(ram:SpecifiedLegalOrganization/ram:ID/@schemeID, ' '), ' '), ' 0106 ') or contains(concat(' ', string-join(ram:SpecifiedLegalOrganization/ram:ID/@schemeID, ' '), ' '), ' 0190 ') ) and (ram:SpecifiedLegalOrganization/ram:ID/normalize-space(.) != '')`

Validate a document against these rules: https://xmlvalid.com/validate
