fix: make filters for payroll entry (#25386)

This commit is contained in:
Afshan
2021-04-19 12:58:27 +05:30
committed by GitHub
parent edf3dfa5a4
commit 632166a933

View File

@@ -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', [])