[UPDT] ATTENDANCE: Added indication for employees with leave and marked attendance

This commit is contained in:
Horilla
2024-08-08 11:47:01 +05:30
parent 66955da53c
commit dab10cc234
2 changed files with 8 additions and 2 deletions

View File

@@ -1069,8 +1069,9 @@ class OverrideAttendances(Attendance):
if status == "HDP" and work_record.is_leave_record:
message = _("Half day leave")
if status == "FDP":
elif status == "FDP" and work_record.is_leave_record:
message = _("An approved leave exists")
elif status == "FDP":
message = _("Present")
work_record.message = message