Skip to content

Commit

Permalink
fix(Salary Assignment): skip warning for missing opening entries in t…
Browse files Browse the repository at this point in the history
…he absence of tax components (backport #2472) (#2477)

Co-authored-by: Rucha Mahabal <[email protected]>
Co-authored-by: Aysha <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent 2bfd0b0 commit 531d16b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 531d16b

Please sign in to comment.