NO-R-001: For Norwegian suppliers, a VAT number MUST be the country code prefix NO followed by a valid Norwegian organization number (nine numbers) followed by the letters MVA.
This rule enforces the Norwegian national VAT identifier format for suppliers registered in Norway. It triggers when the supplier's country (BT-40, cac:Country/cbc:IdentificationCode) is 'NO'. The rule validates that the supplier's VAT identifier (BT-31, cac:PartyTaxScheme/cbc:CompanyID where cac:TaxScheme/cbc:ID = 'VAT') matches the pattern 'NO' followed by exactly 9 digits and the suffix 'MVA'. The XPath context selects the supplier party only if the country code is 'NO'. The assertion fails if the VAT identifier is missing or does not conform to the required format. This is a fatal error because it prevents successful processing by Norwegian authorities and may cause rejection of the invoice.
1. Ensure the supplier's country code (cac:Country/cbc:IdentificationCode) is 'NO'. 2. Locate the supplier's VAT identifier in cac:PartyTaxScheme/cbc:CompanyID where cac:TaxScheme/cbc:ID is 'VAT'. 3. Verify the value matches the pattern: 'NO' + 9 digits + 'MVA' (e.g., NO123456789MVA). 4. If missing or incorrect, update the CompanyID to the correct Norwegian VAT number. 5. If the supplier is not VAT registered, ensure the VAT identifier is omitted and the country is not 'NO' (or handle according to business rules). 6. Re-validate the invoice against the Peppol BIS 3.0 Schematron rules.
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).