Managing Half Day Leave with Existing Attendance in ERPNext

Hello for all…

I’m facing an issue with managing Half day leaves for employees in my ERPNext setup. Here’s the scenario:

We have connected a BioTim to ERPNext for tracking employee attendance.
If the employee requests a Half day leave (e.g., from 12:00 PM to 4:00 PM), and the HR department came to approves the leave. the system shows an error indicating that the “Employee check-in is already existing in the attendance,”
which is true because the system have a check in record for this employee in attendance.

WhatsApp Image 2025-01-13 at 10.03.18 AM

Has anyone encountered a similar issue? What’s the best way to manage this scenario.

Thank you in advance.

Currently the System support only a single Attendance in ERPNext, it doesn’t support multiple attendance.

The work around for this would be to cancel the existing attendance and then create a new attendance. This can be done using Server Scripts

You can proceed by manual update attendance record. Uncheck read_only for “status” field under customize form for Attendance doctype.

Note: Give higer level of permission to access that field.