Bugfix im Jahresbericht, wenn keine Klientennamen vorhanden sind

This commit is contained in:
2026-01-15 10:44:42 +01:00
parent 58d8e3fd4d
commit c5859d85da

View File

@@ -47,14 +47,16 @@ namespace BeWo.Report.DefaultReports
var allCustomerNames = new List<String>();
foreach (var item in tab.JahresReportDetailList)
{
foreach (var name in item.CustomerNames)
if (item.CustomerNames != null)
{
if (!allCustomerNames.Contains(name))
foreach (var name in item.CustomerNames)
{
allCustomerNames.Add(name);
if (!allCustomerNames.Contains(name))
{
allCustomerNames.Add(name);
}
}
}
}
var sorted = allCustomerNames.OrderBy(a => a).ToList();