Wrong CTC in Salary Structure Assignment for case with Opening Balance (2 problems) #2468
Open
1 task done
Labels
bug
Something isn't working
PR: #2469
Information
We just start using Payroll starting Oct 2024, so in Salary Structure Assignment, we use Opening Balance to record Earning and Tax for Jan 2024 - Sep 2024
This way, for Salary Slipt in October, the CTC will include this amount too, which is correct.
However, on November, this person has salary raised from 10,000 to 15,000. And so, payroll user create new Salary Structure Assignment (create new, not copy)
As you can see, there is no Open Balance here, as my common sense think it was already on the previous SSA and already affect the CTC.
1st Problem, when create Salary Slip for November, now CTC is not including the opening banance (just salary from Oct to Dec)
OK, now, I know I need to go back SSA and do the copy so that the new SSA also have Opening Balance too (as I know the system will justuse the active SSA.
Now, when I create Salary Again for Nov 2024, the CTC is 130,000.00 will be valid. BUT....
2nd Problem, given there is nothing change on salary assignment, the Salary Slip for next year, Jan 2025 will also includes Opening Balance, which is wrong again.
The only way to fix this is to go back to the recent SSA and remove the Opening Balance....which no one will knows to do.
Inconclusion, I think the ways system works now is not reasonable.
Module
Payroll
Version
ERPNext: v15.42.0 (version-15)
Frappe Framework: v15.47.2 (version-15)
Frappe HR: v15.35.3 (version-15)
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: