itplr-kosit / validator-configuration-xrechnung

Configuration for validating documents against the German XRechnung standard using the KoSIT validation tool
https://xeinkauf.de/xrechnung/
Apache License 2.0
59 stars 16 forks source link

BUG: UBL variant testcase 03.02a-INVOICE_ubl: BG-18 CardAccount requires NetworkID #53

Open homebeaver opened 3 years ago

homebeaver commented 3 years ago

Ich habe den Testfall 03.02a-INVOICE_ubl etwas abgewandelt, denn

das andere ist optional:

In DIN EN 16931-1:2020-12 werden keine weiteren Elemente genannt. Daher habe ich im Testfall 03.02a-INVOICE_ubl das Element cbc:NetworkID entfernt. So sieht die modifizierte Stelle aus:

    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>48</cbc:PaymentMeansCode>
        <cac:CardAccount>
            <cbc:PrimaryAccountNumberID>41234</cbc:PrimaryAccountNumberID>
            <!-- entfernt, denn in EN16931 nicht definiert:
            <cbc:NetworkID>mapped-from-cii</cbc:NetworkID>  mandatory ??? -->
        </cac:CardAccount>
    </cac:PaymentMeans>

Der Valdator meldet daraufhin einen Fehler, was nicht sein sollte: grafik

Ich nutze: validationtool-1.3.0-standalone.jar:

2020-12-21 20:18:25 [INFO] Using resolving strategy STRICT_RELATIVE
2020-12-21 20:18:25 [INFO] Creating default scenario repository (alongside scenario definition)
2020-12-21 20:18:26 [INFO] Load schema from source file:/C:/proj/factur-X/xrechnung/validationtool-1.3.0/validationtool-1.3.0-standalone.jar!/xsd/scenarios.xsd
2020-12-21 20:18:26 [INFO] Loading scenarios from file:///C:/proj/factur-X/xrechnung/validationtool-1.3.0/scenarios.xml
2020-12-21 20:18:26 [INFO] Creating default scenario repository (alongside scenario definition)
2020-12-21 20:18:26 [INFO] Loading scenario content from file:/C:/proj/factur-X/xrechnung/validationtool-1.3.0/
2020-12-21 20:18:27 [INFO] Loading XSLT script from  resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-21 20:18:28 [INFO] Loading XSLT script from  resources/xrechnung/2.0.0/xsl/XRechnung-UBL-validation-Invoice.xsl
2020-12-21 20:18:28 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:28 [INFO] Loading XSLT script from  resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/xrechnung/2.0.0/xsl/XRechnung-UBL-validation-CreditNote.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/cii/16b/xsl/EN16931-CII-validation.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/xrechnung/2.0.0/xsl/XRechnung-CII-validation.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:29 [INFO] Loading XSLT script from  resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/cii/16b/xsl/EN16931-CII-validation.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/xrechnung-report.xsl
2020-12-21 20:18:30 [INFO] Loading XSLT script from  resources/default-report.xsl
2020-12-21 20:18:30 [INFO] Loaded scenarios for Validator Configuration XRechnung 2.0.0 by Coordination Office for IT Standards (KoSIT) from 2020-08-06. The following scenarios are available:

EN16931 XRechnung (UBL Invoice)
EN16931 XRechnung (UBL CreditNote)
EN16931 XRechnung (CII)
EN16931 (UBL Invoice)
EN16931 (UBL CreditNote)
EN16931 (CII)

Gruß aus Stgt