Remove docstatus=1 to show pending leaves as well (#14498)
This commit is contained in:
parent
9385cd5203
commit
4fe2a91b9f
@ -406,7 +406,7 @@ def get_leaves_for_period(employee, leave_type, from_date, to_date, status):
|
||||
select employee, leave_type, from_date, to_date, total_leave_days
|
||||
from `tabLeave Application`
|
||||
where employee=%(employee)s and leave_type=%(leave_type)s
|
||||
and status = %(status)s and docstatus=1
|
||||
and status = %(status)s
|
||||
and (from_date between %(from_date)s and %(to_date)s
|
||||
or to_date between %(from_date)s and %(to_date)s
|
||||
or (from_date < %(from_date)s and to_date > %(to_date)s))
|
||||
|
Loading…
x
Reference in New Issue
Block a user