46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using BS.Shared.DataContracts;
|
|
using BeWo.Service.Plugins;
|
|
|
|
namespace SeWo.Calculations
|
|
{
|
|
[IgnoreAutoPlugin]
|
|
public class SupportConceptAnalysisCalculations : BS.Shared.Services.Calculations
|
|
{
|
|
public override decimal GetBillableDurationInMinutes(ServiceRecordDC record)
|
|
{
|
|
if (record.ServiceDescription.CategoryName.Contains("Fachleistung"))
|
|
{
|
|
return base.GetBillableDurationInMinutes(record);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public override decimal? GetApprovedHoursForPeriod(SupportConceptApprovalPeriodDC scap,
|
|
List<CostRatePeriodDC> costRatePeriods,
|
|
DateTime? pStart,
|
|
DateTime? pEnd)
|
|
{
|
|
|
|
if (scap.ServiceCategory == null || scap.ServiceCategory.Name.Contains("Fachleistung"))
|
|
{
|
|
return base.GetApprovedHoursForPeriod(scap, costRatePeriods, pStart, pEnd);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public override decimal? GetApprovedHoursPerDay(SupportConceptApprovalPeriodDC scap,
|
|
List<CostRatePeriodDC> costRatePeriods)
|
|
{
|
|
if (scap.ServiceCategory == null || scap.ServiceCategory.Name.Contains("Fachleistung"))
|
|
{
|
|
return base.GetApprovedHoursPerDay(scap, costRatePeriods);
|
|
}
|
|
return 0;
|
|
}
|
|
}
|
|
}
|