Skip to content

Commit

Permalink
fix: mark attendance issue with relieving date
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan committed Sep 30, 2022
1 parent cb4fbd5 commit a9546dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/hr/doctype/attendance/attendance.py
Expand Up @@ -256,7 +256,11 @@ def get_unmarked_days(employee, month, exclude_holidays=0):
if joining_date and joining_date.year == today.year and joining_date.month == month_map[month]:
start_day = joining_date.day

if relieving_date and relieving_date.month == month_map[month]:
if (
relieving_date
and relieving_date.year == today.year
and relieving_date.month == month_map[month]
):
end_day = relieving_date.day + 1

dates_of_month = [
Expand Down

0 comments on commit a9546dd

Please sign in to comment.