MH: SR2 Regex Bugfix

This commit is contained in:
2023-04-26 11:36:27 +02:00
parent 6e74f78b74
commit c8b3a234aa

View File

@@ -6,6 +6,7 @@ using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Text.RegularExpressions;
using BS.Shared.Extensions;
namespace BeWo.Report.DefaultReports
{
@@ -34,7 +35,7 @@ namespace BeWo.Report.DefaultReports
if (pRO.FehlkontakteString != null && ii.RateFactor == 0)
{
Zwischensumme.Visible = true;
if (ii.ItemDescription != null)
if (ii.ItemDescription.IsNullOrEmpty())
{
ii.DetailDescription = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte");
}