35 lines
936 B
C#
35 lines
936 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
|
namespace BhsSolingen
|
|
{
|
|
public class CustomMitarbeiterstundenkontoBerechnung : MitarbeiterstundenkontoBerechnung
|
|
{
|
|
|
|
public override void HandleServiceRecord(MitarbeiterstundenkontoRO.EmployeeDetail emp, ServiceRecord item)
|
|
{
|
|
if (item.ServiceDescription != null)
|
|
{
|
|
decimal duration = 0;
|
|
if (item.GroupRoundedDuration.HasValue)
|
|
{
|
|
duration = item.GroupRoundedDuration.Value;
|
|
}
|
|
else
|
|
{
|
|
duration = item.RoundedDuration;
|
|
}
|
|
|
|
if (item.ServiceDescription.ServiceCategory.Name.StartsWith("Assistenz"))
|
|
{
|
|
emp.Custom1 += duration / 60;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|