From 819db67d398abd39bfa048af1fdf5442c1568a5b Mon Sep 17 00:00:00 2001 From: pitzm Date: Fri, 3 Jul 2026 12:17:25 +0200 Subject: [PATCH] Modules.Interfaces: Reihenfolge der ZUGFeRD Auswertung korrigiert --- Interfaces/ZUGFeRDInterface.vb | 42 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Interfaces/ZUGFeRDInterface.vb b/Interfaces/ZUGFeRDInterface.vb index 9806d709..c14b459a 100644 --- a/Interfaces/ZUGFeRDInterface.vb +++ b/Interfaces/ZUGFeRDInterface.vb @@ -385,6 +385,27 @@ Public Class ZUGFeRDInterface }) End If + '' Reihenfolge 2.0 muss unverändert bleiben. Älteste Version immer zuerst! + If _Options.AllowZugferd_2_x_Schema Then + oAllowedTypes.AddRange(New List(Of AllowedType) From { + New AllowedType With { + .SchemaType = GetType(Version2_0.CrossIndustryInvoiceType), + .Specification = ZUGFERD_SPEC_2x, + .XMLSchema = XMLSCHEMA_ZUGFERD_20 + }, + New AllowedType With { + .SchemaType = GetType(Version2_1_1.CrossIndustryInvoiceType), + .Specification = ZUGFERD_SPEC_2x, + .XMLSchema = XMLSCHEMA_ZUGFERD_211 + }, + New AllowedType With { + .SchemaType = GetType(Version2_2_FacturX.CrossIndustryInvoiceType), + .Specification = ZUGFERD_SPEC_2x, + .XMLSchema = XMLSCHEMA_ZUGFERD_22 + } + }) + End If + '' Reihenfolge ab 2.3 geändert. Neuste Version immer zuerst bzw. oben If _Options.AllowZugferd_2_3_x_Schema Then oAllowedTypes.AddRange(New List(Of AllowedType) From { @@ -411,27 +432,6 @@ Public Class ZUGFeRDInterface }) End If - '' Reihenfolge 2.0 muss unverändert bleiben. Älteste Version immer zuerst! - If _Options.AllowZugferd_2_x_Schema Then - oAllowedTypes.AddRange(New List(Of AllowedType) From { - New AllowedType With { - .SchemaType = GetType(Version2_0.CrossIndustryInvoiceType), - .Specification = ZUGFERD_SPEC_2x, - .XMLSchema = XMLSCHEMA_ZUGFERD_20 - }, - New AllowedType With { - .SchemaType = GetType(Version2_1_1.CrossIndustryInvoiceType), - .Specification = ZUGFERD_SPEC_2x, - .XMLSchema = XMLSCHEMA_ZUGFERD_211 - }, - New AllowedType With { - .SchemaType = GetType(Version2_2_FacturX.CrossIndustryInvoiceType), - .Specification = ZUGFERD_SPEC_2x, - .XMLSchema = XMLSCHEMA_ZUGFERD_22 - } - }) - End If - If _Options.AllowPeppol_3_x_Schema Then oAllowedTypes.AddRange(New List(Of AllowedType) From { New AllowedType With {