Fix employee leave issue

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

No files matched your search

@@ -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"))."'");