Complex Shift Handling, Double Shift Attendance, and Comp-Off Calculation in ERPNext HRMS

Hello Team,

We are currently using ERPNext HRMS with Employee Check-In and Auto Attendance enabled. We have some complex shift scenarios and would like guidance on the recommended approach.

1. Double Shift Handling

If an employee works two shifts in the same day (for example Shift A and Shift B):

How should this be configured in Shift Type and Shift Assignment?

Will ERPNext create two attendance records or a single record for that day?

How are working hours calculated in this case?

2. Comp-Off for Extra Shift

If an employee works beyond the assigned shift or works an additional shift on the same day:

Can ERPNext automatically calculate Comp-Off eligibility?

Should this be handled through Overtime settings or custom logic?

Is there any standard approach for Comp-Off approval workflow in ERPNext?

3. Night Shift / Shift C Attendance

For employees assigned to Shift C (night shift crossing midnight):

How does ERPNext handle attendance across two dates?

How should check-in and check-out logs be mapped when the shift crosses midnight?

Are there recommended settings for Begin Check-in Before Shift Start Time and Allow Check-out After Shift End Time?

4. Continuous Shift Work

In cases where employees work continuous back-to-back shifts without a break:

How does ERPNext calculate total working hours?

Will the system mark overtime automatically?

Are there limitations in the default Auto Attendance logic for such cases?

5. Multiple Check-In Records

If employees have multiple check-ins and check-outs in a day due to shift changes:

How does ERPNext decide first IN and last OUT?

Will this affect Auto Attendance calculation?

6. Recommended Implementation

For organizations with 3 rotating shifts and occasional double shifts, what is the recommended approach?

Separate Shift Assignments per shift

Custom Auto Attendance logic

Custom script for Comp-Off generation

Any best practices or real-world implementations would be greatly appreciated.

Thank you.

2 Likes