fix: mark attendance issue with joining date
This commit is contained in:
@@ -253,7 +253,7 @@ def get_unmarked_days(employee, month, exclude_holidays=0):
|
||||
start_day = 1
|
||||
end_day = calendar.monthrange(today.year, month_map[month])[1] + 1
|
||||
|
||||
if joining_date and joining_date.month == month_map[month]:
|
||||
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]:
|
||||
|
||||
Reference in New Issue
Block a user