Payroll Entry - fix query, get assignment by end date (#14827)

This commit is contained in:
Ranjith Kurungadam 2018-07-06 13:30:40 +05:30 committed by Nabin Hait
parent 1cfcf70905
commit 6429ba9ed9

View File

@ -55,7 +55,7 @@ class PayrollEntry(Document):
t1.name = t2.employee
and t2.docstatus = 1
%s order by t2.from_date desc
""" % cond, {"sal_struct": tuple(sal_struct), "from_date": self.start_date}, as_dict=True)
""" % cond, {"sal_struct": tuple(sal_struct), "from_date": self.end_date}, as_dict=True)
return emp_list
def fill_employee_details(self):