SKMKrefeld/Mitarbeiterauslastung und Teamauslastung Berechnung der Freitstunden im letzten Monat

This commit is contained in:
2024-04-25 08:35:18 +02:00
parent 81f87e594c
commit 629cff290d
3 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ namespace SkmKrefeld
if (teamOids != null && teamOids.Count > 0)
{
IList<long> employeeOids = new List<long>();
report = FindReportImp<MitarbeiterauslastungRO>("TeamauslastungnachMitarbeiter");
report = FindReportImp<MitarbeiterauslastungRO>("TeamauslastungNachMitarbeiter");
x = MitarbeiterauslastungRO.Create(employeeOids, teamOids, startDate, endDate, false);
}
else

View File

@@ -65,7 +65,7 @@ namespace SkmKrefeld
if (anteil > (decimal)0.1 || (sc.ApprovedHoursPerWeek != 0 && sc.ApprovedHoursPerWeekTotal - anteil < (decimal)0.1))
flsPlusMinusGesamt = flsPlusMinusGesamt * sc.ApprovedHoursPerWeekWithRateFactor / sc.ApprovedHoursPerWeekTotal;
if (weeksTotal - weeksToReport > 0)
if (weeksTotal - weeksToReport > 1)
sc.DirectIst = flsPlusMinusGesamt / (weeksTotal - weeksToReport);
else
sc.DirectIst = flsPlusMinusGesamt;

View File

@@ -12,7 +12,7 @@ using BS.Shared.Services;
namespace SkmKrefeld
{
[IDSpecificClass(Identifier = "TeamauslastungnachMitarbeiter")]
[IDSpecificClass(Identifier = "TeamauslastungNachMitarbeiter")]
public partial class Teamauslastung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<MitarbeiterauslastungRO>
{
@@ -59,7 +59,7 @@ namespace SkmKrefeld
if (anteil > (decimal)0.1 || (sc.ApprovedHoursPerWeek != 0 && sc.ApprovedHoursPerWeekTotal - anteil < (decimal)0.1))
flsPlusMinusGesamt = flsPlusMinusGesamt * sc.ApprovedHoursPerWeekWithRateFactor / sc.ApprovedHoursPerWeekTotal;
if (weeksTotal - weeksToReport > 0)
if (weeksTotal - weeksToReport > 1)
sc.DirectIst = flsPlusMinusGesamt / (weeksTotal - weeksToReport);
else
sc.DirectIst = flsPlusMinusGesamt;