diff --git a/hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py b/hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py index ad7ef0fd8d..00dc6a5eba 100644 --- a/hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py +++ b/hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py @@ -169,6 +169,9 @@ def warn_about_missing_opening_entries(self): @frappe.whitelist() def are_opening_entries_required(self) -> bool: + if not get_tax_component(self.salary_structure): + return False + if self.has_emp_joined_after_payroll_period_start() and not self.has_existing_salary_slips(): return True else: