ZUGFeRD Interface: Fix moving attachments to success folder instead of attachments

This commit is contained in:
Jonathan Jenne 2020-03-17 17:05:41 +01:00
parent efade78579
commit a46809ae24

View File

@ -778,8 +778,11 @@ Public Class ImportZUGFeRDFiles
End Try
End If
' Filter out Attachments from `Files`
Dim oInvoiceFiles As List(Of FileInfo) = Files.Except(AttachmentFiles).ToList()
' Move PDF/A Files
For Each oFile In Files
For Each oFile In oInvoiceFiles
Try
Dim oFileName = _filesystem.GetVersionedFilename(Path.Combine(oFinalMoveDirectory, oFile.Name))