ok
This commit is contained in:
parent
a0150b0eed
commit
7b04c7a3e5
|
@ -2454,6 +2454,8 @@ namespace HRM.DA
|
||||||
DataSet EmpOTHours = new ShiftTermService().GetEmpOT(oPayrollType.NextPayProcessDate, trm.ID);
|
DataSet EmpOTHours = new ShiftTermService().GetEmpOT(oPayrollType.NextPayProcessDate, trm.ID);
|
||||||
foreach (DataRow Dr in EmpOTHours.Tables[0].Rows)
|
foreach (DataRow Dr in EmpOTHours.Tables[0].Rows)
|
||||||
{
|
{
|
||||||
|
//if (Convert.ToDouble(Dr["TotalOT"])>0)
|
||||||
|
//{
|
||||||
Employee tempEmployee = employees.Where(emp => emp.ID.ToString() == Dr["EmployeeID"].ToString()).FirstOrDefault();
|
Employee tempEmployee = employees.Where(emp => emp.ID.ToString() == Dr["EmployeeID"].ToString()).FirstOrDefault();
|
||||||
if (tempEmployee == null || tempEmployee.IsEligibleOT == false) continue;
|
if (tempEmployee == null || tempEmployee.IsEligibleOT == false) continue;
|
||||||
|
|
||||||
|
@ -2471,6 +2473,7 @@ namespace HRM.DA
|
||||||
|
|
||||||
EmpOverTimes = MakeEmployeeOvertimeObj(ref EmpOverTimes, ref ErrorList, tempEmployee, termParameters,
|
EmpOverTimes = MakeEmployeeOvertimeObj(ref EmpOverTimes, ref ErrorList, tempEmployee, termParameters,
|
||||||
oPayrollType, trm.ID, Convert.ToDouble(Dr["TotalOT"]), userid);
|
oPayrollType, trm.ID, Convert.ToDouble(Dr["TotalOT"]), userid);
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user