Skip to content

Commit

Permalink
fix: assignment link in tax slab validation
Browse files Browse the repository at this point in the history
(cherry picked from commit b154ceb)
  • Loading branch information
ruchamahabal authored and mergify[bot] committed Apr 4, 2024
1 parent c2bb8e6 commit fc23a21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1489,8 +1489,9 @@ def get_income_tax_slabs(self):
if not income_tax_slab:
frappe.throw(
_("Income Tax Slab not set in Salary Structure Assignment: {0}").format(
self._salary_structure_assignment
)
get_link_to_form("Salary Structure Assignment", self._salary_structure_assignment.name)
),
title=_("Missing Tax Slab"),
)

income_tax_slab_doc = frappe.get_cached_doc("Income Tax Slab", income_tax_slab)
Expand Down

0 comments on commit fc23a21

Please sign in to comment.