einmal mit profis
This commit is contained in:
parent
4f3d8e0c7d
commit
011b78472b
@ -168,7 +168,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
For Each oFile In oFileGroupFiles
|
For Each oFile In oFileGroupFiles
|
||||||
Dim oResult As ProcessFileResult = ProcessFile(oMessageId, oEmailDataBase, oZUGFeRDCount, oFile, oConnections, oArgs)
|
Dim oResult As ProcessFileResult = ProcessFile(oMessageId, oEmailDataBase, oZUGFeRDCount, oFile, oConnections, oArgs)
|
||||||
|
|
||||||
If oResult.ZugferdFileFound = False Then
|
If oResult.ZugferdFileFound = True Then
|
||||||
_logger.Debug("Zugferd File found")
|
_logger.Debug("Zugferd File found")
|
||||||
oMD5CheckSum = oResult.MD5Checksum
|
oMD5CheckSum = oResult.MD5Checksum
|
||||||
oZUGFeRDCount = oResult.ZugferdFileCount
|
oZUGFeRDCount = oResult.ZugferdFileCount
|
||||||
@ -478,6 +478,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
|
|
||||||
' Since extraction went well, increase the amount of ZUGFeRD files
|
' Since extraction went well, increase the amount of ZUGFeRD files
|
||||||
pZugferdFiles += 1
|
pZugferdFiles += 1
|
||||||
|
_logger.Info("Zugferd file found. Increasing counter.")
|
||||||
|
|
||||||
' Extract all attachments with the extensions specified in `AllowedExtensions`.
|
' Extract all attachments with the extensions specified in `AllowedExtensions`.
|
||||||
' If you need to extract and use embedded xml files, you need to filter out the zugferd-invoice.xml yourself.
|
' If you need to extract and use embedded xml files, you need to filter out the zugferd-invoice.xml yourself.
|
||||||
@ -533,7 +534,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
|
|
||||||
oResult.ZugferdFileFound = True
|
oResult.ZugferdFileFound = True
|
||||||
oResult.MD5Checksum = oMD5Checksum
|
oResult.MD5Checksum = oMD5Checksum
|
||||||
oResult.ZugferdFileCount = pZugferdFiles + 1
|
oResult.ZugferdFileCount = pZugferdFiles
|
||||||
|
|
||||||
Return oResult
|
Return oResult
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user