diff --git a/configurations/xrechnung/pom.xml b/configurations/xrechnung/pom.xml index db7dbec..93c2cd7 100644 --- a/configurations/xrechnung/pom.xml +++ b/configurations/xrechnung/pom.xml @@ -27,7 +27,7 @@ de.kosit validationtool-base - 1.0.1-SNAPSHOT + 1.0.1 ../../ diff --git a/configurations/xrechnung/resources/xrechnung/cii/xsl/XRechnung-CII-validation.xsl b/configurations/xrechnung/resources/xrechnung/cii/xsl/XRechnung-CII-validation.xsl index 3762400..8993297 100644 --- a/configurations/xrechnung/resources/xrechnung/cii/xsl/XRechnung-CII-validation.xsl +++ b/configurations/xrechnung/resources/xrechnung/cii/xsl/XRechnung-CII-validation.xsl @@ -206,7 +206,7 @@ - + @@ -226,10 +226,10 @@ - + + test="count((rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount)[1]) + count(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard) + count((rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID, rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:CreditorReferenceID, rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ram:IBANID)[1]) = 1"> BR-DE-13 fatal @@ -283,7 +283,7 @@ - [BR-DE-17] TODO REGEL BT-3 ggf. mit anderer ID + [BR-DE-17] Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001a übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice) und 381 (Credit note). @@ -295,11 +295,11 @@ BR-DE-18 - warning + fatal - [BR-DE-18] TODO REGEL BT-20 ggf. mit anderer ID + [BR-DE-18] Informationen zur Gewährung von Skonto oder zur Berechnung von Verzugszinsen müssen wie folgt im Element "Payment terms" (BT-20) jeweils in einer eigenen Zeile übermittelt werden: Anzugeben ist im ersten Segment "SKONTO" oder "VERZUG", im zweiten "TAGE=n", im dritten "PROZENT=n", wobei die Segmente jeweils von einer "#" umfasst sind. Prozentzahlen sind mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto oder Verzugszins als viertes Segment "BASISBETRAG=n" mit dem semantischen Datentyp Amount anzugeben. @@ -307,7 +307,7 @@ - @@ -329,7 +329,7 @@ - @@ -366,7 +366,7 @@ - @@ -420,7 +420,7 @@ - @@ -457,7 +457,7 @@ - @@ -494,7 +494,7 @@ - diff --git a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/EN16931-UBL-validation.xsl b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/EN16931-UBL-validation.xsl index 791408d..5bbb9e5 100644 --- a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/EN16931-UBL-validation.xsl +++ b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/EN16931-UBL-validation.xsl @@ -3999,21 +3999,6 @@ - - - - UBL-CR-002 - warning - - - - [UBL-CR-002]-A UBL invoice should not include the UBLVersionID - - - - - - - + + test="not(cac:AdditionalDocumentReference/cbc:DocumentType)"> UBL-CR-114 warning - [UBL-CR-114]-A UBL invoice should not include the AdditionalDocumentReference DocumentTypeCode + [UBL-CR-114]-A UBL invoice should not include the AdditionalDocumentReference DocumentType @@ -12518,22 +12503,6 @@ - - - - UBL-CR-536 - warning - - - - [UBL-CR-536]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentTypeCode - - - - - - - + - + UBL-DT-18 warning @@ -15321,7 +15291,7 @@ - @@ -15348,10 +15318,10 @@ - + + test="((not(contains(normalize-space(.), ' ')) and contains(' 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062 0063 0064 0065 0066 0067 0068 0069 0070 0071 0072 0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0092 0093 0094 0095 0096 0097 0098 0099 0100 0101 0102 0103 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149 0150 0151 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0183 ', concat(' ', normalize-space(.), ' ')))) or ((not(contains(normalize-space(.), ' ')) and contains(' SEPA ', concat(' ', normalize-space(.), ' '))) and (//ancestor::cac:AccountingSupplierParty) or (//ancestor::cac:PayeeParty))"> fatal diff --git a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-CreditNote.xsl b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-CreditNote.xsl index e5da6d0..e076b22 100644 --- a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-CreditNote.xsl +++ b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-CreditNote.xsl @@ -207,7 +207,7 @@ - + @@ -266,7 +266,7 @@ - [BR-DE-17] TODO REGEL BT-3 ggf. mit anderer ID + [BR-DE-17] Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001a übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice) und 381 (Credit note). @@ -278,11 +278,11 @@ BR-DE-18 - warning + fatal - [BR-DE-18] TODO REGEL BT-20 ggf. mit anderer ID + [BR-DE-18] Informationen zur Gewährung von Skonto oder zur Berechnung von Verzugszinsen müssen wie folgt im Element "Payment terms" (BT-20) jeweils in einer eigenen Zeile übermittelt werden: Anzugeben ist im ersten Segment "SKONTO" oder "VERZUG", im zweiten "TAGE=n", im dritten "PROZENT=n", wobei die Segmente jeweils von einer "#" umfasst sind. Prozentzahlen sind mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto oder Verzugszins als viertes Segment "BASISBETRAG=n" mit dem semantischen Datentyp Amount anzugeben. @@ -290,7 +290,7 @@ - @@ -312,7 +312,7 @@ - @@ -349,7 +349,7 @@ - @@ -401,7 +401,7 @@ - @@ -438,7 +438,7 @@ - @@ -475,7 +475,7 @@ - + @@ -496,7 +496,7 @@ - diff --git a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-Invoice.xsl b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-Invoice.xsl index 315c2c4..f1313a4 100644 --- a/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-Invoice.xsl +++ b/configurations/xrechnung/resources/xrechnung/ubl21/xsl/XRechnung-UBL-validation-Invoice.xsl @@ -207,7 +207,7 @@ - + @@ -266,7 +266,7 @@ - [BR-DE-17] TODO REGEL BT-3 ggf. mit anderer ID + [BR-DE-17] Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001a übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice) und 381 (Credit note). @@ -278,11 +278,11 @@ BR-DE-18 - warning + fatal - [BR-DE-18] TODO REGEL BT-20 ggf. mit anderer ID + [BR-DE-18] Informationen zur Gewährung von Skonto oder zur Berechnung von Verzugszinsen müssen wie folgt im Element "Payment terms" (BT-20) jeweils in einer eigenen Zeile übermittelt werden: Anzugeben ist im ersten Segment "SKONTO" oder "VERZUG", im zweiten "TAGE=n", im dritten "PROZENT=n", wobei die Segmente jeweils von einer "#" umfasst sind. Prozentzahlen sind mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto oder Verzugszins als viertes Segment "BASISBETRAG=n" mit dem semantischen Datentyp Amount anzugeben. @@ -290,7 +290,7 @@ - @@ -312,7 +312,7 @@ - @@ -349,7 +349,7 @@ - @@ -401,7 +401,7 @@ - @@ -438,7 +438,7 @@ - @@ -475,7 +475,7 @@ - + @@ -496,7 +496,7 @@ - diff --git a/configurations/xrechnung/scenarios.xml b/configurations/xrechnung/scenarios.xml index 27e526f..98e9c83 100644 --- a/configurations/xrechnung/scenarios.xml +++ b/configurations/xrechnung/scenarios.xml @@ -1,17 +1,20 @@ - Prüftool-Konfiguration XRechnung (Entwurf) + Prüftool-Konfiguration XRechnung 1.1 KoSIT - 2017-09-20 + 2017-12-19 -

Prüfung von Dokumenten auf Konformität zum Standard XRechnung (www.xoev.de/de/xrechnung)

+

Prüfung von Dokumenten auf Konformität zum Standard XRechnung 1.1 (https://www.xoev.de/de/xrechnung/1_1).

+

Diese Konfiguration enthält die Schematron-Regeln der EN16931 mit dem Stand 19.12.2017 (https://github.com/CenPC434/validation/commit/5a82a74d239efea67bcc4381a2facad3bc524758).

+

Diese Konfiguration enthält die Schematron-Regeln der CIUS XRechnung 1.1 mit dem Stand 19.12.2017 (https://github.com/itplr-kosit/xrechnung-artefacts/releases/tag/xrechnung-1_1-schematron-2017-12-19).

EN16931 CIUS XRechnung (UBL Invoice) 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')] + /invoice:Invoice[starts-with(cbc:CustomizationID, 'urn:cen.eu:en16931:2017') or + starts-with(cbc:CustomizationID, 'urn:ce.eu:en16931:2017'] XML Schema for UBL 2.1 Invoice @@ -42,7 +45,8 @@ EN16931 CIUS XRechnung (UBL CreditNote) 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')] + /creditnote:CreditNote[starts-with(cbc:CustomizationID, 'urn:cen.eu:en16931:2017') or + starts-with(cbc:CustomizationID, 'urn:ce.eu:en16931:2017')] XML Schema for UBL 2.1 CreditNote @@ -73,7 +77,8 @@ EN16931 CIUS XRechnung (CII) urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100 urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100 - /rsm:CrossIndustryInvoice[starts-with(rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID, 'urn:cen.eu:en16931:2017')] + /rsm:CrossIndustryInvoice[starts-with(rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID, 'urn:cen.eu:en16931:2017') or + starts-with(rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID, 'urn:ce.eu:en16931:2017')] XML Schema for UN/CEFACT XML (SCRDM - CII) diff --git a/configurations/xrechnung/test/build.xml b/configurations/xrechnung/test/build.xml index f45164a..94999a5 100644 --- a/configurations/xrechnung/test/build.xml +++ b/configurations/xrechnung/test/build.xml @@ -1,7 +1,7 @@ - + diff --git a/configurations/xrechnung/test/reports/bin001-report.html b/configurations/xrechnung/test/reports/bin001-report.html index c0be209..8ae125c 100644 --- a/configurations/xrechnung/test/reports/bin001-report.html +++ b/configurations/xrechnung/test/reports/bin001-report.html @@ -1,4 +1,4 @@ - + Prüfbericht