Skip to content

Commit

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

* chore: fix linter

---------

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit e534594)
  • Loading branch information
rtdany10 authored and mergify[bot] committed Jun 6, 2024
1 parent ca857ab commit a54dad9
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 @@ -140,6 +140,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 a54dad9

Please sign in to comment.