Skip to content

Commit

Permalink
fix: avoid rejected leave application on leave check (backport #1848) (
Browse files Browse the repository at this point in the history
…#1850)

* fix: avoid rejected leave application on leave check

* chore: fix linter

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit e534594)

Co-authored-by: Dany Robert <danyrt@wahni.com>
  • Loading branch information
mergify[bot] and rtdany10 committed Jun 6, 2024
1 parent abaf45c commit 4a11d98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrms/hr/doctype/attendance_request/attendance_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def has_leave_record(self, attendance_date: str) -> str | None:
"docstatus": 1,
"from_date": ("<=", attendance_date),
"to_date": (">=", attendance_date),
"status": "Approved",
},
)

Expand Down

0 comments on commit 4a11d98

Please sign in to comment.