MH: LH Coburg Ministatistik umsortieren

This commit is contained in:
2023-11-07 12:53:34 +01:00
parent 7ce56e6d63
commit c4fc90976f
2 changed files with 22 additions and 0 deletions

View File

@@ -132,6 +132,7 @@
<DependentUpon>RosterReport.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomDienstplanungsmanager.cs" />
<Compile Include="Service\CustomServiceRecordStatisticFactory.cs" />
<Compile Include="Teamstundenkonto.cs">
<SubType>Component</SubType>
</Compile>

View File

@@ -0,0 +1,21 @@
using BeWo.Service.Plugins;
using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LebenshilfeCoburg.Service
{
public class CustomServiceRecordStatisticFactory : ServiceRecordStatisticFactory
{
public override SupportConceptStatisticsDC CreateSupportConceptStatisticsImpl(long costBearer2SupportConceptOid, DateTime statisticsDate, long? ignoreServiceRecordOid)
{
var stat = base.CreateSupportConceptStatisticsImpl(costBearer2SupportConceptOid, statisticsDate, ignoreServiceRecordOid);
stat.PeriodStatistics = stat.PeriodStatistics.OrderByDescending(p => p.SupportConceptApprovalPeriod.StartDate).ToList();
return stat;
}
}
}