23 lines
805 B
C#
23 lines
805 B
C#
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 TeamPfeil.Statistics
|
|
{
|
|
public class CustomServiceRecordStatisticFactory : ServiceRecordStatisticFactory
|
|
{
|
|
public override SupportConceptStatisticsDC CreateSupportConceptStatisticsImpl(long costBearer2SupportConceptOid, DateTime statisticsDate, long? ignoreServiceRecordOid)
|
|
{
|
|
var stats = base.CreateSupportConceptStatisticsImpl(costBearer2SupportConceptOid, statisticsDate, ignoreServiceRecordOid);
|
|
|
|
stats.PeriodStatistics = stats.PeriodStatistics.OrderByDescending(s => s.SupportConceptApprovalPeriod.StartDate).ToList();
|
|
|
|
return stats;
|
|
}
|
|
}
|
|
}
|