Fix employee leave issue

This commit is contained in:
Thilina Hasantha
2015-10-11 08:51:36 +05:30
parent 7c5c28047d
commit 208d62d167
2 changed files with 2 additions and 251 deletions

View File

@@ -40,9 +40,8 @@ class DashboardActionManager extends SubActionManager{
$attendance = new Attendance();
$data['numberOfAttendanceLastWeek'] = $attendance->Count("in_time > '".date("Y-m-d H:i:s",strtotime("-1 week"))."'");
$empLeave = new EmployeeLeave();
$data['numberOfLeaves'] = $empLeave->Count("date_start > '".date("Y-m-d")."'");
$data['numberOfLeaves'] = 0;
$timeEntry = new EmployeeTimeEntry();
$data['numberOfAttendanceLastWeek'] = $attendance->Count("in_time > '".date("Y-m-d H:i:s",strtotime("-1 week"))."'");