Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculate_tax_by_tax_slab has bug - adding 1 for nothing #1457

Open
1 task done
tinodj opened this issue Feb 22, 2024 · 0 comments
Open
1 task done

calculate_tax_by_tax_slab has bug - adding 1 for nothing #1457

tinodj opened this issue Feb 22, 2024 · 0 comments

Comments

@tinodj
Copy link

tinodj commented Feb 22, 2024

Information about bug

While it might working adding 1 for some currencies, with EUR this makes inconsistencies.

1 should be removed and is not necessary - it calculates wrongly.

Imagine the following brackets/slabs:

0-100 10%
100-200 20%

Someone getting 200 income tax should be: 30.

However, this function calculates: 30.3

In EUR (and many other currencies) very often these slabs are defined on two decimal places.

def calculate_tax_by_tax_slab(

Module

HR, Payroll

Version

ERPNext: v15.14.4 (version-15)

Frappe Framework: v15.15.0 (version-15)

Frappe HR: v15.12.0 (version-15)

Installation method

None

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tinodj tinodj added the bug Something isn't working label Feb 22, 2024
@ruchamahabal ruchamahabal removed the bug Something isn't working label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants