From ad48b0cf1440ddf67be2ffdcdfec189702b17f5a Mon Sep 17 00:00:00 2001 From: Kojo Date: Mon, 24 Mar 2025 13:26:17 +0100 Subject: [PATCH] =?UTF-8?q?Fehlkontakt-Pr=C3=BCfung=20einheitlich=20(mit?= =?UTF-8?q?=20toLower()=20und=20ohne=20e=20am=20Ende)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Invoicing/SettlementInvoiceCreation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/Invoicing/SettlementInvoiceCreation.cs b/Service/Invoicing/SettlementInvoiceCreation.cs index a3460780e..6db68d65f 100644 --- a/Service/Invoicing/SettlementInvoiceCreation.cs +++ b/Service/Invoicing/SettlementInvoiceCreation.cs @@ -880,7 +880,7 @@ namespace BeWo.Service.Invoicing ii.UnitCount = Math.Round(uc, 2, MidpointRounding.AwayFromZero); if (ii.AmountPerUnit.HasValue) { - if (!String.IsNullOrEmpty(ii.ItemDescription) && ii.ItemDescription == "Fehlkontakte") + if (!String.IsNullOrEmpty(ii.ItemDescription) && ii.ItemDescription.ToLower().Contains("fehlkontakt")) { ii.AmountPerUnit = ii.AmountPerUnit * ii.ProzentAbrechenbar / 100; } @@ -922,7 +922,7 @@ namespace BeWo.Service.Invoicing if (ii.AmountPerUnit.HasValue) { - if (!String.IsNullOrEmpty(ii.ItemDescription) && ii.ItemDescription == "Fehlkontakte" && ii.ProzentAbrechenbar.HasValue) + if (!String.IsNullOrEmpty(ii.ItemDescription) && ii.ItemDescription.ToLower().Contains("fehlkontakt") && ii.ProzentAbrechenbar.HasValue) { ii.AmountPerUnit = ii.AmountPerUnit * ii.ProzentAbrechenbar / 100; }