DomizielAnsbach/ZVBerichtBezirk - Bugfixes für Sonderfälle

This commit is contained in:
2025-07-15 15:24:12 +02:00
parent 69e74b7c88
commit db06272eee

View File

@@ -70,7 +70,7 @@ namespace DomizielAnsbach
{
if (at.Start.HasValue && at.End.HasValue && ((at.Start.Value >= monthStart && at.Start.Value <= monthEnd)
|| (at.End.Value >= monthStart && at.Start.Value <= monthStart))
&& (!at.Reason.Description.Contains("Feiertag") && !at.Reason.Description.Contains("Urlaub")))
&& (!at.Reason.Description.Contains("Feiertag") && !at.Reason.Description.Contains("Urlaub") && !at.Reason.Description.Contains("mit AU")))
{
periodEnd = at.Start.Value.AddDays(-1);
krankEnd = at.End.Value;
@@ -81,7 +81,7 @@ namespace DomizielAnsbach
var ro = new FinanceRO.SupportConceptFinanceRO();
ro.CustomerName = sc.CustomerName;
if (ro.CustomerName.Contains("Rohloff"))
if (ro.CustomerName.Contains("Wolfram"))
{
int tuao = 1;
}
@@ -115,6 +115,8 @@ namespace DomizielAnsbach
{
if (periodEnd == DateTime.MinValue)
periodEnd = monthEnd;
if (sc.Costbearer2Supportconcept.EndDate.HasValue && sc.Costbearer2Supportconcept.EndDate > monthStart && periodEnd > sc.Costbearer2Supportconcept.EndDate) // falls direkt im ersten Monat wieder beendet wird
periodEnd = sc.Costbearer2Supportconcept.EndDate.Value;
ro.Custom2 = String.Format("{0:dd.MM.yyyy}", periodEnd);
}
else
@@ -160,6 +162,7 @@ namespace DomizielAnsbach
{
monthStart = new DateTime(monthStart.Year, monthStart.AddMonths(1).Month, 1);
periodEnd = DateTime.MinValue;
m = 0;
}
}
}