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; }