Fixed overtime checkin not showing
This commit is contained in:
@@ -564,7 +564,7 @@ class _CheckInTabState extends ConsumerState<_CheckInTab> {
|
|||||||
s.userId == profile.id || s.relieverIds.contains(profile.id);
|
s.userId == profile.id || s.relieverIds.contains(profile.id);
|
||||||
final overlapsToday =
|
final overlapsToday =
|
||||||
s.startTime.isBefore(tomorrowStart) && s.endTime.isAfter(todayStart);
|
s.startTime.isBefore(tomorrowStart) && s.endTime.isAfter(todayStart);
|
||||||
return isAssigned && overlapsToday;
|
return isAssigned && overlapsToday && s.shiftType != 'overtime';
|
||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
// Find active attendance log (checked in but not out)
|
// Find active attendance log (checked in but not out)
|
||||||
|
|||||||
Reference in New Issue
Block a user