fix: Show message is no employee found

This commit is contained in:
Nabin Hait 2022-04-11 15:30:26 +05:30
parent 7072dda31f
commit c27e3ef03e

View File

@ -67,6 +67,9 @@ class IncomeTaxComputationReport(object):
d.update(ss_assignments[d.employee])
self.employees.setdefault(d.employee, d)
if not self.employees:
frappe.throw(_("No employees found with selected filters and active salary structure"))
def get_employee_filters(self):
filters = {"company": self.filters.company}
or_filters = {