NL-R-003: For suppliers in the Netherlands, the legal entity identifier MUST be either a KVK or OIN number (schemeID 0106 or 0190)
This rule enforces the Dutch national extension of EN 16931 for Peppol BIS Billing 3.0. It applies to the supplier's legal entity identifier (BT-30) when the supplier's country (BT-40) is 'NL'. The context XPath selects the CompanyID element within the PartyLegalEntity of the AccountingSupplierParty, but only if the variable $supplierCountryIsNL evaluates to true (i.e., the supplier's country code is 'NL'). The assertion requires that the CompanyID element has a schemeID attribute with value '0106' (KVK number) or '0190' (OIN number). If the schemeID is missing or has any other value, the rule fails with fatal severity. This ensures that Dutch suppliers provide a valid legal identifier as mandated by Dutch law.
1. Identify the supplier's legal entity identifier (cbc:CompanyID within cac:PartyLegalEntity). 2. Check the schemeID attribute. If the supplier's country (cbc:IdentificationCode in cac:Country) is 'NL', ensure the schemeID is either '0106' (for KVK number) or '0190' (for OIN number). 3. If the schemeID is missing or incorrect, update it to the appropriate value. 4. Ensure the CompanyID value is a valid KVK or OIN number as per Dutch regulations. 5. Validate the updated XML against the Peppol BIS Billing 3.0 Schematron to confirm compliance.
Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.
fix: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.
Missing <cbc:EndpointID schemeID="..."> inside <cac:AccountingSupplierParty>/<cac:Party>.
fix: Add <cbc:EndpointID schemeID="9930">DE123456789</cbc:EndpointID> as the first child of Seller <cac:Party>.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
If both supplier and customer are located in Germany, an invoice shall contain information on "PAYMENT INSTRUCTIONS" (BG-16).
If both supplier and customer are located in Germany, the group "SELLER CONTACT" (BG-6) shall be provided.
If both supplier and customer are located in Germany, the element "Buyer reference" (BT-10) shall be provided.
If both supplier and customer are located in Germany, and if one of the VAT codes S, Z, E, AE, K, G, L, or M is used, an invoice shall contain at least one of the following elements: "Seller VAT identifier" (BT-31) or "Seller tax registration identifier" (BT-32) or "SELLER TAX REPRESENTATIVE PARTY" (BG-11).
If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).