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

fix(Salary Structure Assignment: Preview Salary Slip): Calculation of earnings whose formula is dependent on deductions and so on (backport #2088) #2131

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 28, 2024

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:

image

Salary Slip Preview (Base = 4,58,433):

image

Special Allowance isn't updated, as it does not get Provident Fund and Gratuity values. It should be 3504 - (1800 + 919) = 785

Solution

@mergify mergify bot requested a review from ruchamahabal as a code owner August 28, 2024 16:05
@ruchamahabal ruchamahabal merged commit 9b5512c into version-15-hotfix Aug 28, 2024
8 checks passed
@mergify mergify bot deleted the mergify/bp/version-15-hotfix/pr-2088 branch August 28, 2024 17:04
@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.27.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants