Added proper check-in time for second time check-in
This commit is contained in:
parent
885e370668
commit
d0c80a18d6
@ -318,6 +318,7 @@ namespace MarcoBMS.Services.Controllers
|
|||||||
attendance.Comment = recordAttendanceDot.Comment;
|
attendance.Comment = recordAttendanceDot.Comment;
|
||||||
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
|
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
|
||||||
{
|
{
|
||||||
|
attendance.InTime = finalDateTime;
|
||||||
attendance.OutTime = null;
|
attendance.OutTime = null;
|
||||||
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
|
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
|
||||||
}
|
}
|
||||||
@ -476,6 +477,7 @@ namespace MarcoBMS.Services.Controllers
|
|||||||
attendance.Comment = recordAttendanceDot.Comment;
|
attendance.Comment = recordAttendanceDot.Comment;
|
||||||
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
|
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
|
||||||
{
|
{
|
||||||
|
attendance.InTime = finalDateTime;
|
||||||
attendance.OutTime = null;
|
attendance.OutTime = null;
|
||||||
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
|
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user