From 3e550121b9792e98f12573ca0f7688a7152c0866 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Thu, 9 Dec 2021 14:30:54 +0100 Subject: [PATCH] Jobs: Make Xml Document an Object to support new variable ZUGFeRD Schemata --- Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb b/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb index d4e91d3d..fdf6e348 100644 --- a/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb +++ b/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb @@ -197,7 +197,10 @@ Public Class ImportZUGFeRDFiles Try For Each oFile In oFileGroupFiles - Dim oDocument As CrossIndustryDocumentType + ' 09.12.2021: oDocument is now an Object, because have different classes corresponding to the + ' different versions of ZUGFeRD and the type is unknown at compile-time. + Dim oDocument As Object + ' Start a global group counter for each file Dim oGlobalGroupCounter = 0 ' Clear missing properties for the new file