🐛 Fix attendance bug

This commit is contained in:
gamonoid
2017-09-20 05:35:56 +02:00
parent e506c1d7a1
commit 119e042b3a

View File

@@ -134,7 +134,7 @@ class AttendanceActionManager extends SubActionManager
$this->baseService->audit(IceConstants::AUDIT_ACTION, "Punch Out \ time:".$openPunch->out_time);
} else {
$openPunch->in_time = $dateTime;
$openPunch->out_time = null;
$openPunch->out_time = '0000-00-00 00:00:00';
$openPunch->note = $req->note;
$openPunch->image_in = $req->image;
$openPunch->employee = $employee->id;