Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
homebeaver opened this issue Dec 21, 2020 · 0 comments

Comments

@homebeaver
Copy link

homebeaver commented Dec 21, 2020

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

  • BG-18 ++ 0..1 INFORMATIONEN ZUR ZAHLUNSKARTE hat nur ein mandatory Element
  • BT-87 +++ 1..1 Zahlungskartennummer

das andere ist optional:

  • BT-88 +++ 0..1 Name des Zahlungskarteninhabers

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

homebeaver added a commit to klst-de/e-invoice that referenced this issue Jan 3, 2021
getNetworkID ist nicht in EN16931 definiert, aber in UBL und in 03.02a
Beispiel, siehe
itplr-kosit/validator-configuration-xrechnung#53
daher optional
@bdewein bdewein reopened this Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants