fix: Employee Inactive status implications (#26245)

This commit is contained in:
Rucha Mahabal
2021-06-29 15:58:56 +05:30
committed by GitHub
parent 9bcc402f41
commit 1f10a99910
4 changed files with 10 additions and 1 deletions

View File

@@ -459,6 +459,7 @@ def get_emp_list(sal_struct, cond, end_date, payroll_payable_account):
where
t1.name = t2.employee
and t2.docstatus = 1
and t1.status != 'Inactive'
%s order by t2.from_date desc
""" % cond, {"sal_struct": tuple(sal_struct), "from_date": end_date, "payroll_payable_account": payroll_payable_account}, as_dict=True)