From 9e5e4cd473b77877fca6a641fa1fdbb85ebfafc2 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Tue, 29 Apr 2025 11:02:44 +0530 Subject: [PATCH] Added proper check-in time for second time check-in --- Marco.Pms.Services/Controllers/AttendanceController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Marco.Pms.Services/Controllers/AttendanceController.cs b/Marco.Pms.Services/Controllers/AttendanceController.cs index 74eff5d..81a0f30 100644 --- a/Marco.Pms.Services/Controllers/AttendanceController.cs +++ b/Marco.Pms.Services/Controllers/AttendanceController.cs @@ -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; }