ChristopherusHaus/Export/LohnExporter - Filter auf Assistenz
This commit is contained in:
@@ -44,12 +44,19 @@ namespace BeWo.ChristopherusHaus.Export
|
||||
edat.Personalnr = edt.Employee.PersonnelNumber;
|
||||
edat.Vorname = edt.FirstName;
|
||||
edat.Nachname = edt.LastName;
|
||||
var contract = edt.Employee.GetValidContractForDate(monat);
|
||||
bool fachkraft = true;
|
||||
if (contract != null && contract.ContractTypeValueListEntry != null && contract.ContractTypeValueListEntry.Type == ValueListEntryType.ContractType
|
||||
&& contract.ContractTypeValueListEntry.Value.Contains("Assistenzkraft"))
|
||||
{
|
||||
fachkraft = false;
|
||||
}
|
||||
|
||||
decimal nachtarbeit = 0;
|
||||
decimal sonntag = 0;
|
||||
decimal feiertag = 0;
|
||||
|
||||
if (edt.Days != null)
|
||||
if (edt.Days != null && fachkraft)
|
||||
{
|
||||
foreach (var dd in edt.Days)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user