Payroll Entry - fix query, get assignment by end date (#14827)
This commit is contained in:
parent
1cfcf70905
commit
6429ba9ed9
@ -55,7 +55,7 @@ class PayrollEntry(Document):
|
|||||||
t1.name = t2.employee
|
t1.name = t2.employee
|
||||||
and t2.docstatus = 1
|
and t2.docstatus = 1
|
||||||
%s order by t2.from_date desc
|
%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
|
return emp_list
|
||||||
|
|
||||||
def fill_employee_details(self):
|
def fill_employee_details(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user