Skip to content

Commit

Permalink
Merge pull request #2206 from frappe/mergify/bp/version-14-hotfix/pr-…
Browse files Browse the repository at this point in the history
…2197

fix(Income Tax Computation): consideration of new employees without preexisting salary slips (backport #2197)
  • Loading branch information
krantheman authored Sep 18, 2024
2 parents 3d12d30 + ceb718f commit fa91264
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def get_data_for_eval(self, emp: str, emp_details: dict) -> tuple:
salary_slip = frappe.new_doc("Salary Slip")
salary_slip.employee = emp
salary_slip.salary_structure = emp_details.salary_structure
salary_slip.start_date = self.payroll_period_start_date
salary_slip.start_date = max(self.payroll_period_start_date, emp_details.date_of_joining)
salary_slip.payroll_frequency = frappe.db.get_value(
"Salary Structure", emp_details.salary_structure, "payroll_frequency"
)
Expand Down

0 comments on commit fa91264

Please sign in to comment.