BeWoAuxilioRitter/CustomMitarbeiterstundenkontoBerechnung.cs - Fehlkontakte vermindern nicht mehr Gesamtstunden

This commit is contained in:
2025-04-11 14:42:07 +02:00
parent d3031dd1af
commit 680bbd9593

View File

@@ -87,11 +87,11 @@ namespace BeWo.BeWoAuxilioRitter
ed.Custom15 = 0.8m;
}
}
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - ed.Custom5 - ed.Custom6; //Monatssoll - bereinigt um besondere Aufgaben u Fehlkontakte
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - ed.Custom5; //Monatssoll - bereinigt um besondere Aufgabe
ed.Custom3 = Math.Round(ed.Custom15 * ed.Custom2, 2, MidpointRounding.AwayFromZero); //FLSMonatsSoll
if (ed.StundenGesamtIst != 0)
{
ed.Custom7 = ed.StundenGesamtIst - ed.Custom5 - ed.Custom6; //Gesamtstunden bereinigt um bes.Aufgaben & Fehlkontakte
ed.Custom7 = ed.StundenGesamtIst - ed.Custom5; //Gesamtstunden bereinigt um bes.Aufgaben
ed.Custom8 = ed.Custom1 - ed.Custom6; //FLS bereinigt um Fehlkontakte
ed.Custom14 = ed.Custom8 / ed.Custom7; //FLS Quote Monat
}
@@ -141,12 +141,12 @@ namespace BeWo.BeWoAuxilioRitter
var preis = GetPreis(start);
if (start == reportStart.AddMonths(-2))
{
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - bes1 - fk1; // Monatssoll
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - bes1; // Monatssoll
ed.Custom3 = Math.Round(ratio * ed.Custom2, 2, MidpointRounding.AwayFromZero); //FLSMonatsSoll
if (urlaubKrankheit < 3 && (ed.StundenGesamtIst - bes1 - fk1) > ed.Custom2)
if (urlaubKrankheit < 3 && (ed.StundenGesamtIst - bes1) > ed.Custom2)
{
ed.Custom3 = Math.Round(ratio * (ed.StundenGesamtIst - bes1 - fk1), 2, MidpointRounding.AwayFromZero);
ed.Custom14 = (FLS1 - fk1) / (ed.StundenGesamtIst - bes1 - fk1); //FLS Quote Monat
ed.Custom3 = Math.Round(ratio * (ed.StundenGesamtIst - bes1), 2, MidpointRounding.AwayFromZero);
ed.Custom14 = (FLS1 - fk1) / (ed.StundenGesamtIst - bes1); //FLS Quote Monat
ed.Custom13 = ed.Custom14 - ratio; // Quoten Diff zum Soll
if (ed.Custom13 > 0)
{
@@ -156,12 +156,12 @@ namespace BeWo.BeWoAuxilioRitter
}
else if (start == reportStart.AddMonths(-1))
{
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - bes2 - fk2; // Monatssoll
ed.Custom2 = ed.StundenSollOhneUrlaubKrankheit - bes2; // Monatssoll
ed.Custom3 = Math.Round(ratio * ed.Custom2, 2, MidpointRounding.AwayFromZero); //FLSMonatsSoll
if (urlaubKrankheit < 3 && (ed.StundenGesamtIst - bes2 - fk2) > ed.Custom2)
if (urlaubKrankheit < 3 && (ed.StundenGesamtIst - bes2) > ed.Custom2)
{
ed.Custom3 = Math.Round(ratio * (ed.StundenGesamtIst - bes2 - fk2), 2, MidpointRounding.AwayFromZero);
ed.Custom14 = (FLS2 - fk2) / (ed.StundenGesamtIst - bes2 - fk2); //FLS Quote Monat
ed.Custom3 = Math.Round(ratio * (ed.StundenGesamtIst - bes2), 2, MidpointRounding.AwayFromZero);
ed.Custom14 = (FLS2 - fk2) / (ed.StundenGesamtIst - bes2); //FLS Quote Monat
ed.Custom13 = ed.Custom14 - ratio; // Quoten Diff zum Soll
if (ed.Custom13 > 0)
{