-
Notifications
You must be signed in to change notification settings - Fork 737
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(Salary Structure Assignment: Preview Salary Slip): Calculation of earnings whose formula is dependent on deductions and so on #2088
Merged
ruchamahabal
merged 5 commits into
frappe:develop
from
krantheman:fix-salary-slip-preview
Aug 28, 2024
Merged
fix(Salary Structure Assignment: Preview Salary Slip): Calculation of earnings whose formula is dependent on deductions and so on #2088
ruchamahabal
merged 5 commits into
frappe:develop
from
krantheman:fix-salary-slip-preview
Aug 28, 2024
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
…pendent on deductions
krantheman
force-pushed
the
fix-salary-slip-preview
branch
from
August 16, 2024 09:59
3b6041a
to
80ed620
Compare
Same 🤝. It needs a rewrite. This approach needs to be optimized but maybe during/after the rewrite. |
ruchamahabal
approved these changes
Aug 28, 2024
LGTM |
ruchamahabal
added a commit
that referenced
this pull request
Aug 28, 2024
…2088 fix(Salary Structure Assignment: Preview Salary Slip): Calculation of earnings whose formula is dependent on deductions and so on (backport #2088)
ruchamahabal
added a commit
to ruchamahabal/hrms
that referenced
this pull request
Aug 31, 2024
- sanitize condition & formula fields in structure doc reference to avoid accidental reference to unsanitized fields across functions regression: frappe#2088
ruchamahabal
added a commit
to ruchamahabal/hrms
that referenced
this pull request
Aug 31, 2024
- sanitize condition & formula fields in structure doc reference to avoid accidental reference to unsanitized fields across functions regression: frappe#2088
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.
Ticket: https://support.frappe.io/helpdesk/tickets/20134
First of all, let it be known that I do not like working on the payroll codebase.
Now that that is out of the way, if the formula of an earning component is dependent on a deduction component, it does not get updated in the salary slip preview. Consequently, other components that are dependent on the un-updated one do not get updated either, and so on.
Salary Structure:
Salary Slip Preview (Base = 4,58,433):
Special Allowance isn't updated, as it does not get Provident Fund and Gratuity values. It should be 3504 - (1800 + 919) = 785
Solution