From 32bb14db06aeeb5b4e68cee76c9a70d758dc86a5 Mon Sep 17 00:00:00 2001 From: pitzm Date: Mon, 4 Aug 2025 13:06:04 +0200 Subject: [PATCH] Modules.Jobs: Strings-Vergleiche sollten unbedingt mit string.equals() erfolgen! --- Jobs/ZUGFeRD/ImportZUGFeRDFiles.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jobs/ZUGFeRD/ImportZUGFeRDFiles.vb b/Jobs/ZUGFeRD/ImportZUGFeRDFiles.vb index cf617ac3..85552ae1 100644 --- a/Jobs/ZUGFeRD/ImportZUGFeRDFiles.vb +++ b/Jobs/ZUGFeRD/ImportZUGFeRDFiles.vb @@ -439,7 +439,8 @@ Public Class ImportZUGFeRDFiles If oMoveDirectory = DIRECTORY_DONT_MOVE Then _logger.Info("Application Error occurred. Files for message Id {0} will not be moved.", oMessageId) - ElseIf oArgs.AllowXRechnung And oIsSuccess And oEInvoiceFileGroup.Item(0).Extension = ".xml" Then + ElseIf oArgs.AllowXRechnung And oIsSuccess And + oEInvoiceFileGroup.Item(0).Extension.Equals(".xml", StringComparison.OrdinalIgnoreCase) = True Then _logger.Debug("Before Creating the PDF-File from XML data / Before Commit") oxRechnungHandle = True