Skip to content

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

Open
@homebeaver

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions