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: payroll entry -> salary slip: with add salary, the deduction not correctly computed #2772

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kittiu
Copy link
Contributor

@kittiu kittiu commented Feb 9, 2025

When a deduction component is computed based on earning component which is an additional salary, the sequence of computation result in invalid deduction.

ERPNext: v15.51.1 (version-15)
Frappe Framework: v15.55.2 (version-15)
Frappe HR: v15.39.1 (version-15)

NOTE: This bug happen only case when Salary Slip is created from Payroll Entry and not when create Salary Slip directly.

Here is the deduction component formula, part of it based on Additional Salary (BACK), which will be part of earning.

select 25-02-09 18-42-13

Payroll Entry -> Create Salary Slip, looks like the PVD is computed when Additional Salary is not yet recognized.

select 25-02-09 18-46-01

If recomputed (by updating or with the proposed fix in this PR), now it is good.

image

…not correctly computed

When a deduction component is computed based on earning component which is an additional salary, the sequence of computation result in invalid deduction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant