DE-R-017: 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).
This rule (DE-R-017) is a German-specific Peppol BIS Billing 3.0 Schematron assertion that applies when both the supplier (BG-5) and customer (BG-7) are located in Germany. The context XPath selects either an Invoice or CreditNote document where the variables $supplierCountryIsDE and $customerCountryIsDE evaluate to true. These variables are defined elsewhere in the Schematron and check the country code (BT-40 for supplier, BT-55 for customer) against 'DE'. The rule then asserts that the Invoice type code (BT-3), which is mandatory and taken from UNTDID 1001, must be one of the listed values: 326, 380, 384, 389, 381, 875, 876, or 877. If the code is not in this set, the assertion fails, triggering a warning. The XPath test likely checks the value of cbc:InvoiceTypeCode or cbc:CreditNoteTypeCode against the allowed list. This rule ensures compliance with German e-invoicing requirements, particularly for construction invoices and credit notes.
1. Identify the Invoice type code (BT-3) in your UBL document: it is the value of cbc:InvoiceTypeCode (for Invoice) or cbc:CreditNoteTypeCode (for CreditNote). 2. Check if both supplier and customer country codes (BT-40 and BT-55) are 'DE'. If not, this rule does not apply. 3. If both are 'DE', ensure the Invoice type code is one of: 326, 380, 384, 389, 381, 875, 876, 877. 4. If the current code is not in the list, replace it with an appropriate allowed code. For a standard commercial invoice, use 380. For a credit note, use 381. For construction invoices, use 875, 876, or 877 as applicable. 5. Validate the document again to ensure the warning is resolved.
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>.
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).
Danish suppliers MUST provide legal entity (CVR-number)