diff --git a/erpnext/payroll/report/income_tax_computation/income_tax_computation.py b/erpnext/payroll/report/income_tax_computation/income_tax_computation.py index cf822aac7f..cebf6de342 100644 --- a/erpnext/payroll/report/income_tax_computation/income_tax_computation.py +++ b/erpnext/payroll/report/income_tax_computation/income_tax_computation.py @@ -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 = {