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