SKMKrefeld/Mitarbeiterauslastung und Teamauslastung Berechnung der Freitstunden im letzten Monat
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user