Added proper check-in time for second time check-in

This commit is contained in:
ashutosh.nehete 2025-04-29 11:02:44 +05:30
parent 5ffd85b9c7
commit 9e5e4cd473

View File

@ -318,6 +318,7 @@ namespace MarcoBMS.Services.Controllers
attendance.Comment = recordAttendanceDot.Comment;
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
{
attendance.InTime = finalDateTime;
attendance.OutTime = null;
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
}
@ -476,6 +477,7 @@ namespace MarcoBMS.Services.Controllers
attendance.Comment = recordAttendanceDot.Comment;
if (recordAttendanceDot.Action == ATTENDANCE_MARK_TYPE.CHECK_IN)
{
attendance.InTime = finalDateTime;
attendance.OutTime = null;
attendance.Activity = ATTENDANCE_MARK_TYPE.CHECK_OUT;
}