fix: make filters for payroll entry (#25386)
This commit is contained in:
parent
edf3dfa5a4
commit
632166a933
@ -70,6 +70,15 @@ class PayrollEntry(Document):
|
||||
emp_list = remove_payrolled_employees(emp_list, self.start_date, self.end_date)
|
||||
return emp_list
|
||||
|
||||
def make_filters(self):
|
||||
filters = frappe._dict()
|
||||
filters['company'] = self.company
|
||||
filters['branch'] = self.branch
|
||||
filters['department'] = self.department
|
||||
filters['designation'] = self.designation
|
||||
|
||||
return filters
|
||||
|
||||
@frappe.whitelist()
|
||||
def fill_employee_details(self):
|
||||
self.set('employees', [])
|
||||
|
Loading…
Reference in New Issue
Block a user