-
Notifications
You must be signed in to change notification settings - Fork 754
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: wrong compute of CTC on salary slip, if employee relieving date before end of payroll period. #1779
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ate before end of payroll period.
May I follow up? |
ruchamahabal
approved these changes
Aug 6, 2024
The issue for which the incorrect fix was made seems unnecessary. Payroll for some employee won't be run the month after employee was relieved (when employee wasn't working there). Employee tax exemption proof submission has some other use case, but not replicable anymore. |
This was referenced Aug 6, 2024
Closed
ruchamahabal
pushed a commit
that referenced
this pull request
Aug 6, 2024
…before end of payroll period. (backport #1779) (#2053) (cherry picked from commit 4c961fb) Co-authored-by: Kitti U. @ Ecosoft <[email protected]>
ruchamahabal
pushed a commit
that referenced
this pull request
Aug 6, 2024
…before end of payroll period. (backport #1779) (#2054) (cherry picked from commit 4c961fb) Co-authored-by: Kitti U. @ Ecosoft <[email protected]>
frappe-pr-bot
pushed a commit
that referenced
this pull request
Aug 7, 2024
## [14.29.3](v14.29.2...v14.29.3) (2024-08-07) ### Bug Fixes * concurrency issue leading to duplicate attendance insertion ([#2041](#2041)) ([#2042](#2042)) ([3411d7a](3411d7a)) * filter and bold issue in Salary Payments Based On Payment Mode (backport [#2025](#2025)) ([#2048](#2048)) ([0913976](0913976)) * filter in reports (backport [#1987](#1987)) ([#2044](#2044)) ([adeb482](adeb482)) * query in Provident Fund and Professional Tax Deductions reports (backport [#2026](#2026)) ([#2033](#2033)) ([617de87](617de87)) * rendering the email template subject in leave notification (backport [#2027](#2027)) ([#2046](#2046)) ([1e576fc](1e576fc)) * wrong compute of CTC on salary slip, if employee relieving date before end of payroll period. (backport [#1779](#1779)) ([#2053](#2053)) ([f8837e4](f8837e4))
frappe-pr-bot
pushed a commit
that referenced
this pull request
Aug 7, 2024
## [15.25.2](v15.25.1...v15.25.2) (2024-08-07) ### Bug Fixes * bank entry reference in payroll (backport [#2037](#2037)) ([#2039](#2039)) ([432f977](432f977)) * concurrency issue leading to duplicate attendance insertion ([#2041](#2041)) ([#2043](#2043)) ([957537c](957537c)) * filter and bold issue in Salary Payments Based On Payment Mode (backport [#2025](#2025)) ([#2049](#2049)) ([46ed7be](46ed7be)) * filter in reports (backport [#1987](#1987)) ([#2045](#2045)) ([ac35324](ac35324)) * query in Provident Fund and Professional Tax Deductions reports (backport [#2026](#2026)) ([#2034](#2034)) ([8d056db](8d056db)) * rendering the email template subject in leave notification (backport [#2027](#2027)) ([#2047](#2047)) ([cd1bdc0](cd1bdc0)) * wrong compute of CTC on salary slip, if employee relieving date before end of payroll period. (backport [#1779](#1779)) ([#2054](#2054)) ([ddf4cdb](ddf4cdb)) * wrong translation of "Manual" ([1bdc836](1bdc836))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Calculation of CTC on Salary Slip is rediculous wrong if Employee's relieving date is set before end of payroll period.
And from the testing, I only find this false commit -> 4303a9b
and so, this PR is just removing it.
To explain the problem, I am testing with a simple salary structure with just income and tax.
Create the Slary Slip for January 2024
CTC wil be be 250,000 !!!
Looking at the code that I removed
As
And so, 1 Dec 2022 until 15 Dec 2024 is 25 months, which compute to CTC = 10,000 * 25 = 250,000
Note: even if we use period_end very close to start_date, i.e. 15 Feb, it is still make a very wrong computation. So, I am really don't know the reason of having such code.