Skip to content

Commit

Permalink
fix(Salary Slip): fetching of lwp leave applications
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed Jul 1, 2024
1 parent 6571537 commit d8e53a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ def get_lwp_or_ppl_for_date_range(employee, start_date, end_date):
& (LeaveApplication.status == "Approved")
& (LeaveApplication.employee == employee)
& ((LeaveApplication.salary_slip.isnull()) | (LeaveApplication.salary_slip == ""))
& ((LeaveApplication.from_date >= start_date) & (LeaveApplication.to_date <= end_date))
& ((LeaveApplication.from_date <= end_date) & (LeaveApplication.to_date >= start_date))
)
).run(as_dict=True)

Expand Down

0 comments on commit d8e53a9

Please sign in to comment.