Skip to content

Commit

Permalink
Merge pull request #2197 from krantheman/fix-income-tax-computation-r…
Browse files Browse the repository at this point in the history
…eport

fix(Income Tax Computation): consideration of new employees without preexisting salary slips
  • Loading branch information
krantheman authored Sep 18, 2024
2 parents e5d9f2d + a98ba04 commit 72e55ce
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 72e55ce

Please sign in to comment.