diff --git a/README.md b/README.md index 1726727..1a36441 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ This is a special configuration of the [KoSIT Validator](https://github.com/itplr-kosit/validator). -This validator uses the latest Peppol BIS 3.0.10 rules. -This is the "Spring 2021" release announced on 2021-05-03. -It is valid per 2021-05-17. +This validator uses the latest Peppol BIS 3.0.12 rules. +This is the "November 2021" release announced on 2021-11-01. +It is valid per 2021-11-15. -The next Peppol update is foreseen in November 2021. +The next Peppol update is foreseen in May 2022. **Please note: this configuration uses validation artefacts published by OpenPeppol ([OpenPeppol - GitHub](https://github.com/OpenPEPPOL)). Please use the [Peppol Service desk](https://openpeppol.atlassian.net/servicedesk/customer/portal/1) to report any issues related to the validation. KoSIT is offering this configuration of the [KoSIT Validator](https://github.com/itplr-kosit/validator), but excludes any liability.** @@ -33,7 +33,7 @@ unzip validator.zip -d bin/ ### Running the validator Required tools: -* Java 1.8 or newer +* Java 1.8 or Java 11 - Java 17 does not seem to work Verify all examples files (`test-files/good/*.xml`) and produced HTML output to directory `result-reports/` - all of them should be valid: @@ -88,5 +88,5 @@ Required tools: * zip ```shell -zip -r -9 validation-configuration-bis-3.0.10.zip README.md scenarios.xml resources/* +zip -r -9 validation-configuration-bis-3.0.12.zip README.md scenarios.xml resources/* ``` diff --git a/resources/peppol/billing-bis/3.0.10/CEN-EN16931-UBL.xslt b/resources/peppol/billing-bis/3.0.12/CEN-EN16931-UBL.xslt similarity index 99% rename from resources/peppol/billing-bis/3.0.10/CEN-EN16931-UBL.xslt rename to resources/peppol/billing-bis/3.0.12/CEN-EN16931-UBL.xslt index 585ff5c..93504de 100644 --- a/resources/peppol/billing-bis/3.0.10/CEN-EN16931-UBL.xslt +++ b/resources/peppol/billing-bis/3.0.12/CEN-EN16931-UBL.xslt @@ -1089,9 +1089,9 @@ - + - + BR-CO-15 fatal @@ -2045,7 +2045,7 @@ - [BR-CO-08]-Invoice line charge reason code (BT-145) and Invoice line charge reason (BT144) shall indicate the same type of charge reason. + [BR-CO-08]-Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason. @@ -2625,9 +2625,9 @@ - + - + BR-CO-09 fatal @@ -4171,9 +4171,9 @@ - + - + UBL-CR-022 warning @@ -4261,9 +4261,9 @@ - + - + UBL-CR-028 warning @@ -4606,9 +4606,9 @@ - + - + UBL-CR-051 warning @@ -4846,9 +4846,9 @@ - + - + UBL-CR-067 warning @@ -5101,9 +5101,9 @@ - + - + UBL-CR-084 warning @@ -5341,9 +5341,9 @@ - + - + UBL-CR-100 warning @@ -5566,9 +5566,9 @@ - + - + UBL-CR-115 warning @@ -6571,9 +6571,9 @@ - + - + UBL-CR-183 warning @@ -7531,9 +7531,9 @@ - + - + UBL-CR-247 warning @@ -8056,9 +8056,9 @@ - + - + UBL-CR-282 warning @@ -9196,9 +9196,9 @@ - + - + UBL-CR-358 warning @@ -9586,9 +9586,9 @@ - + - + UBL-CR-384 warning @@ -10036,9 +10036,9 @@ - + - + UBL-CR-414 warning @@ -10111,9 +10111,9 @@ - + - + UBL-CR-419 warning @@ -11491,9 +11491,9 @@ - + - + UBL-CR-512 warning @@ -11866,9 +11866,9 @@ - + - + UBL-CR-538 warning @@ -12376,9 +12376,9 @@ - + - + UBL-CR-572 warning @@ -12451,9 +12451,9 @@ - + - + UBL-CR-577 warning @@ -12541,9 +12541,9 @@ - + - + UBL-CR-583 warning @@ -12901,9 +12901,9 @@ - + - + UBL-CR-607 warning @@ -13171,9 +13171,9 @@ - + - + UBL-CR-625 warning @@ -13186,9 +13186,9 @@ - + - + UBL-CR-626 warning @@ -13201,9 +13201,9 @@ - + - + UBL-CR-627 warning @@ -13216,9 +13216,9 @@ - + - + UBL-CR-628 warning @@ -13231,9 +13231,9 @@ - + - + UBL-CR-629 warning @@ -13246,9 +13246,9 @@ - + - + UBL-CR-630 warning @@ -13261,9 +13261,9 @@ - + - + UBL-CR-631 warning @@ -13276,9 +13276,9 @@ - + - + UBL-CR-632 warning @@ -13291,9 +13291,9 @@ - + - + UBL-CR-633 warning @@ -13306,9 +13306,9 @@ - + - + UBL-CR-634 warning @@ -13321,9 +13321,9 @@ - + - + UBL-CR-635 warning @@ -13336,9 +13336,9 @@ - + - + UBL-CR-636 warning @@ -13351,9 +13351,9 @@ - + - + UBL-CR-637 warning @@ -13366,9 +13366,9 @@ - + - + UBL-CR-638 warning @@ -13381,9 +13381,9 @@ - + - + UBL-CR-639 warning @@ -13396,9 +13396,9 @@ - + - + UBL-CR-640 warning @@ -13411,9 +13411,9 @@ - + - + UBL-CR-641 warning @@ -13426,9 +13426,9 @@ - + - + UBL-CR-642 warning @@ -13441,9 +13441,9 @@ - + - + UBL-CR-643 warning @@ -13456,9 +13456,9 @@ - + - + UBL-CR-644 warning @@ -14401,21 +14401,6 @@ - - - - UBL-SR-06 - fatal - - - - [UBL-SR-06]-Preceding invoice reference shall occur maximum once - - - - - - @@ -14782,21 +14767,6 @@ - - - - UBL-SR-38 - fatal - - - - [UBL-SR-38]-Invoiced item VAT exemption reason text shall occur maximum once - - - - - - @@ -14899,9 +14869,9 @@ - + - + UBL-SR-27 fatal @@ -14935,6 +14905,21 @@ + + + + UBL-SR-06 + fatal + + + + [UBL-SR-06]-Preceding invoice reference shall occur maximum once + + + + + + diff --git a/resources/peppol/billing-bis/3.0.10/PEPPOL-EN16931-UBL.xslt b/resources/peppol/billing-bis/3.0.12/PEPPOL-EN16931-UBL.xslt similarity index 81% rename from resources/peppol/billing-bis/3.0.10/PEPPOL-EN16931-UBL.xslt rename to resources/peppol/billing-bis/3.0.12/PEPPOL-EN16931-UBL.xslt index 9a41569..551cd5f 100644 --- a/resources/peppol/billing-bis/3.0.10/PEPPOL-EN16931-UBL.xslt +++ b/resources/peppol/billing-bis/3.0.12/PEPPOL-EN16931-UBL.xslt @@ -22,31 +22,68 @@ - - - - - - + + + + + + - - - - - + + + + + - - - - - - + + + + + + + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + + + + + + + + + + + + + + + + + + + - - - - - + + + + + @@ -197,70 +234,77 @@ - + - + - + - + - + - + - + - + + + + + + + + - + - + @@ -275,7 +319,7 @@ - + @@ -292,18 +336,18 @@ - + - - - + + + - + @@ -455,11 +499,11 @@ - + - + @@ -476,11 +520,11 @@ - + - + @@ -497,11 +541,11 @@ - + - + @@ -518,11 +562,11 @@ - + - + @@ -539,11 +583,11 @@ - + - + @@ -560,11 +604,11 @@ - + - + @@ -596,11 +640,11 @@ - + - + @@ -617,11 +661,11 @@ - + - + @@ -638,11 +682,11 @@ - + - + @@ -659,11 +703,11 @@ - + - + @@ -680,11 +724,11 @@ - + - + @@ -752,11 +796,11 @@ - + - + @@ -788,11 +832,11 @@ - + - + @@ -811,11 +855,11 @@ - + - + @@ -832,11 +876,11 @@ - + - + @@ -853,11 +897,11 @@ - + - + @@ -874,18 +918,144 @@ - + + + + + + + + + + + + + PEPPOL-COMMON-R043 + warning + + + + Belgian enterprise number MUST be stated in the correct format. + + + + + + + + + + + + + + + + PEPPOL-COMMON-R044 + warning + + + + IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format + + + + + + + + + + + + + + + + PEPPOL-COMMON-R045 + warning + + + + Tax Code (Codice Fiscale) must be stated in the correct format + + + + + + + + + + + + + + + + PEPPOL-COMMON-R046 + warning + + + + Tax Code (Codice Fiscale) must be stated in the correct format + + + + + + + + + + + + + + + + PEPPOL-COMMON-R047 + warning + + + + Italian VAT Code (Partita Iva) must be stated in the correct format + + + + - - - + + + + + + + + + + + PEPPOL-COMMON-R048 + warning + + + + Italian VAT Code (Partita Iva) must be stated in the correct format + + + + + + + + - + @@ -920,11 +1090,11 @@ - + - - - + + + @@ -932,7 +1102,7 @@ - + @@ -994,11 +1164,11 @@ - + - + @@ -1015,11 +1185,11 @@ - + - + @@ -1126,11 +1296,11 @@ - + - + @@ -1147,11 +1317,11 @@ - + - + @@ -1168,18 +1338,18 @@ - + - - - + + + - + @@ -1196,11 +1366,11 @@ - + - + @@ -1247,18 +1417,18 @@ - + - - - + + + - + @@ -1290,11 +1460,11 @@ - + - + @@ -1326,11 +1496,11 @@ - + - + @@ -1347,11 +1517,11 @@ - + - + @@ -1368,11 +1538,11 @@ - + - + @@ -1404,11 +1574,11 @@ - + - + @@ -1440,11 +1610,11 @@ - + - + @@ -1461,11 +1631,11 @@ - + - + @@ -1482,11 +1652,11 @@ - + - - - + + + @@ -1499,7 +1669,7 @@ - + @@ -1608,11 +1778,11 @@ - + - + @@ -1644,11 +1814,11 @@ - + - + @@ -1680,11 +1850,11 @@ - + - + @@ -1701,11 +1871,11 @@ - + - + @@ -1752,11 +1922,11 @@ - + - + @@ -1773,11 +1943,11 @@ - + - + @@ -1794,11 +1964,11 @@ - + - + @@ -1815,11 +1985,11 @@ - + - + @@ -1836,18 +2006,18 @@ - + - - - + + + - + @@ -1864,11 +2034,11 @@ - + - + @@ -1885,11 +2055,11 @@ - + - - - + + + @@ -1897,7 +2067,7 @@ - + @@ -1955,7 +2125,7 @@ - [IS-R-006]-If seller is icelandic and payment means code is 9 then a 12 digit account id must exist — Ef seljandi er íslenskur og greiðslumáti (BT-81) er millifærsla (kóti 9) þá skal koma fram 12 stafa reikningnúmer (BT-84) + [IS-R-006]-If seller is icelandic and payment means code is 9 then a 12 digit account id must exist — Ef seljandi er íslenskur og greiðslumáti (BT-81) er krafa (kóti 9) þá skal koma fram 12 stafa númer (bankanúmer, höfuðbók 66 og reikningsnúmer) (BT-84) @@ -2019,11 +2189,11 @@ - + - + @@ -2055,11 +2225,209 @@ - + + + + + + + + + + + + + + + + + + + + + + NL-R-001 + fatal + + + + [NL-R-001] For suppliers in the Netherlands, if the document is a creditnote, the document MUST contain an invoice reference (cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID) + + + + + + + + + + + + + + + + NL-R-002 + fatal + + + + [NL-R-002] For suppliers in the Netherlands the supplier's address (cac:AccountingSupplierParty/cac:Party/cac:PostalAddress) MUST contain street name (cbc:StreetName), city (cbc:CityName) and post code (cbc:PostalZone) + + + + + + + + + + + + + + + + NL-R-003 + fatal + + + + [NL-R-003] For suppliers in the Netherlands, the legal entity identifier MUST be either a KVK or OIN number (schemeID 0106 or 0190) + + + + + + + + + + + + + + + + NL-R-004 + fatal + + + + [NL-R-004] 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 post code (cbc:PostalZone) + + + + + + + + + + + + + + + + NL-R-005 + fatal + + + + [NL-R-005] For suppliers in the Netherlands, if the customer is in the Netherlands, the customer's legal entity identifier MUST be either a KVK or OIN number (schemeID 0106 or 0190) + + + + + + + + + + + + + + + + NL-R-006 + fatal + + + + [NL-R-006] For suppliers in the Netherlands, if the fiscal representative is in the Netherlands, the representative's address (cac:TaxRepresentativeParty/cac:PostalAddress) MUST contain street name (cbc:StreetName), city (cbc:CityName) and post code (cbc:PostalZone) + + + + + + + + + + + + + + + + NL-R-007 + fatal + + + + [NL-R-007] For suppliers in the Netherlands, the supplier MUST provide a means of payment (cac:PaymentMeans) if the payment is from customer to supplier + + + + + + + + + + + + + + + + NL-R-008 + fatal + + + + [NL-R-008] For suppliers in the Netherlands, the payment means code (cac:PaymentMeans/cbc:PaymentMeansCode) MUST be one of 30, 48, 49, 57, 58 or 59 + + + + + + + + + + + + + + + + NL-R-009 + fatal + + + + [NL-R-009] For suppliers in the Netherlands, if an order line reference (cac:OrderLineReference/cbc:LineID) is used, there must be an order reference on the document level (cac:OrderReference/cbc:ID) + + + + - - - + + + @@ -2073,7 +2441,7 @@ - + @@ -2090,11 +2458,11 @@ - + - + @@ -2111,11 +2479,11 @@ - + - + @@ -2132,11 +2500,11 @@ - + - + @@ -2153,11 +2521,11 @@ - + - + @@ -2174,11 +2542,11 @@ - + - + @@ -2195,11 +2563,11 @@ - + - + @@ -2216,11 +2584,11 @@ - + - + @@ -2238,11 +2606,11 @@ - + - + @@ -2259,11 +2627,11 @@ - + - + @@ -2280,11 +2648,11 @@ - + - + @@ -2301,11 +2669,11 @@ - + - + @@ -2322,11 +2690,11 @@ - + - + @@ -2343,11 +2711,11 @@ - + - + @@ -2364,11 +2732,11 @@ - + - + @@ -2385,11 +2753,11 @@ - + - + @@ -2406,11 +2774,11 @@ - + - + @@ -2427,10 +2795,10 @@ - + - - - + + + diff --git a/scenarios.xml b/scenarios.xml index eac6cfe..dd5cabc 100644 --- a/scenarios.xml +++ b/scenarios.xml @@ -1,98 +1,98 @@ - - Prüftool-Konfiguration Peppol BIS - KoSIT - 2021-05-07 - -

Prüfung von Dokumenten auf Konformität zum Standard Peppol BIS 3.0.10

-

Diese Konfiguration enthält ausschließlich Peppol Rechnungs-Prüfungen und keine XRechnungs-Prüfungen

-
+ + Prüftool-Konfiguration Peppol BIS + KoSIT + 2021-11-15 + +

Prüfung von Dokumenten auf Konformität zum Standard Peppol BIS 3.0.12

+

Diese Konfiguration enthält ausschließlich Peppol Rechnungs-Prüfungen und keine XRechnungs-Prüfungen

+
- - - - Peppol Billing BIS 3 - UBL Invoice - -

Validierung von UBL Invoice version 2.1

-

Dieses Scenario enthält: + + Peppol Billing BIS 3 - UBL Invoice + +

Validierung von UBL Invoice version 2.1

+

Dieses Scenario enthält: - XML Schema UBL v2.1 Invoice - Schematron-Regeln EN16931:2017 -- Schematron-Regeln Peppol Billing v3.0.10

-
- urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 - urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 +- Schematron-Regeln Peppol Billing v3.0.12 +

+ + urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 + urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 - /invoice:Invoice[ starts-with(cbc:CustomizationID,'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0') ] - - - XML Schema for UBL 2.1 Invoice - resources/ubl/2.1/xsd/maindoc/UBL-Invoice-2.1.xsd - - - - - Schematron rules for EN16931 (UBL) - resources/peppol/billing-bis/3.0.10/CEN-EN16931-UBL.xslt - - - - - Schematron rules for CreditNote - CIUS Peppol Billing BIS (UBL) - resources/peppol/billing-bis/3.0.10/PEPPOL-EN16931-UBL.xslt - - - - - Validation report for Peppol Billing BIS - resources/xrechnung-report.xsl - - -
- - Peppol Billing BIS 3 - UBL CreditNote - -

Validierung von UBL CreditNote version 2.1

-

Dieses Scenario enthält: + /invoice:Invoice[starts-with(cbc:CustomizationID,'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0')] + + + + XML Schema for UBL 2.1 Invoice + resources/ubl/2.1/xsd/maindoc/UBL-Invoice-2.1.xsd + + + + + Schematron rules for EN16931 (UBL) + resources/peppol/billing-bis/3.0.12/CEN-EN16931-UBL.xslt + + + + + Schematron rules for CreditNote - CIUS Peppol Billing BIS (UBL) + resources/peppol/billing-bis/3.0.12/PEPPOL-EN16931-UBL.xslt + + + + + Validation report for Peppol Billing BIS + resources/xrechnung-report.xsl + + + + + Peppol Billing BIS 3 - UBL CreditNote + +

Validierung von UBL CreditNote version 2.1

+

Dieses Scenario enthält: - XML Schema UBL v2.1 CreditNote - Schematron-Regeln EN16931:2017 -- Schematron-Regeln Peppol Billing v3.0.10

-
- urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 - urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2 - /creditnote:CreditNote[starts-with(cbc:CustomizationID, 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0')] - - - XML Schema for UBL 2.1 CreditNote - resources/ubl/2.1/xsd/maindoc/UBL-CreditNote-2.1.xsd - - - - - Schematron rules for EN16931 (UBL) - resources/peppol/billing-bis/3.0.10/CEN-EN16931-UBL.xslt - - - - - Schematron rules for CreditNote - CIUS Peppol Billing BIS (UBL) - resources/peppol/billing-bis/3.0.10/PEPPOL-EN16931-UBL.xslt - - - - - Prüfbericht für Peppol Billing BIS - resources/xrechnung-report.xsl - - -
+- Schematron-Regeln Peppol Billing v3.0.12 +

+ + urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 + urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2 + /creditnote:CreditNote[starts-with(cbc:CustomizationID,'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0')] + + + XML Schema for UBL 2.1 CreditNote + resources/ubl/2.1/xsd/maindoc/UBL-CreditNote-2.1.xsd + + + + + Schematron rules for EN16931 (UBL) + resources/peppol/billing-bis/3.0.12/CEN-EN16931-UBL.xslt + + + + + Schematron rules for CreditNote - CIUS Peppol Billing BIS (UBL) + resources/peppol/billing-bis/3.0.12/PEPPOL-EN16931-UBL.xslt + + + + + Prüfbericht für Peppol Billing BIS + resources/xrechnung-report.xsl + + + - - - Default Report - resources/default-report.xsl - - + + + Default Report + resources/default-report.xsl + +