Same date, multiple attendances despite having shift assignment!

Hi Everyone,
There is something that has been bugging me for quite a while now. I don’t know if I am wrong, so please guide me here.

Setup :
As you can see from the images, I have assigned a shift (Shift C: 10:00 PM - 06:00 AM (General)) to an employee from 20-04-2025 to 30-04-2025, which is a night shift that starts at 22:00 and ends at 06:00 the next morning. There is a grace period of 3 hours for the start time and a 5-hour grace period from the end time. The system starts taking the checkins for that particular shift at 19:00 and ends taking the checkins for that particular shift at 11:00 the next morning. Now, I have a checkin whose time is 27-04-2025 22:30, and its shift is Shift C: 10:00 PM - 06:00 AM (General) as expected. Then I have another checkin whose time is 27-04-2025 15:30 and its shift is Head Office (General) - 09:30 AM - 06:30 PM, another checkin which is under default shift time, is also expected.

Process :
So, when the default hourly scheduler shift_type.process_auto_attendance_for_all_shifts pulls the attendance from these checkin data periodically, as you can see, there are 2 attendances on the same date. It is marking them as Present (one from the Shift Assignemnt and one from Default Shift) but in some cases it is also marking them as Absent.

Issue / Query :

  1. Should multiple attendances be allowed on the same date ? (One thing to note here is that Allow Multiple Shifts on the Same Date option from hr settings is disabled)

  2. Should the system mark the checkin by default shift if there is already a shift assignment? Because as per me, the system should ignore the default shift if there is a shift assignment for an employee in a specific timeline, right?

Please help me understand that if this is a feature or some kind of unresolved issue?

I hope my words are not too confusing. Please ask questions if these words are confusing and I’ll respond.

Thanks in advance.






2 Likes

I am experiencing the same issue and would appreciate understanding the rationale behind this feature.

1 Like

So you are saying despite having shift assignment that particular Employee is being marked for attendance both for his Default Shift and and Shift assignment ?

1 Like

Yes. And according to me this shouldn’t work like this, I guess?

Hi,

When an employee has both default shift and assigned shift, and if the two shift times overlap with each other, employee checkins take care of assigning shift for time log.
For example, the overlapping hours between these two shift are 6.30 to 11.30 in the morning and 19:00:00 to 23:30:00 in the evening. If the time of log was between these hours the assigned shift would be preferred instead of default.
Because, 15:30:00 is outside that window, the shift in employee checkin was different.

Consider a case where default shift is assigned for day hours and a shift assignment is created for night hours. If employee shows up for both those shifts, it would result in two attendances on the same day which would count towards an additional payment day if payroll is based on attendance. This could be intended? (Would like opinions on this)

We can add a way to verify multiple attendances from the payroll entry and have way to correct if additional payment day is unwanted.

2 Likes

I guess overtime is one way to put it. Great thinking! I never saw it like this. Thanks! I am handling the overtime differently, so I have to stop checkin from getting the default shift if there is a shift assignment for the employee. Currently I am trying that.

1 Like