-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
fix: specify precision for net_amount (backport #39481) #42817
fix: specify precision for net_amount (backport #39481) #42817
Conversation
* fix: specify precision for net_amount * fix: correct existing test to account for precision * fix: rounding issue in test cases * fix: optional grand total manipulation * fix: use `grand_total_diff` for manipulation * fix: patch to set default for grand total manipulation * fix: wrong rounding assertion for USD * fix: undefined this.frm error * chore: linters * fix: `net_amount` percision and method rename * fix: missing frm reference * chore: minor cleanups and depr message * refactor: remove optional adjusting of grand total (cherry picked from commit 50d56db) # Conflicts: # erpnext/public/js/controllers/accounts.js # erpnext/public/js/controllers/taxes_and_totals.js
Cherry-pick of 50d56db has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
3e91839
to
9d3f291
Compare
9d3f291
to
c5dedab
Compare
@rtdany10 Could you take a look? |
@ruthra-kumar In v14, the asserting is for -0.01 while the grand total is an integer. But apparently grand_total assertion is failing here. I guess we should correct the test case either way |
I do not have write access to this branch, can you correct the test cases please? @ruthra-kumar |
@rtdany10 Merged |
🎉 This issue has been resolved in version 14.73.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Continuation of #38141
Removed optional grand total adjustment functionality, rather it is always adjusted for inclusive taxes.
This is an automatic backport of pull request #39481 done by Mergify.