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: clear loans on employee and salary slip date change #2810

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

elshafei-developer
Copy link
Contributor

the set_loan_repayment function in salary_slip_loan_utils.py doesn't update loans field if it is already populated.
this can create a bug that the loans field is not updated if employee or date of salary slip is changes.
this will create another bug that the loan is repaid with another employees salary if the employee field is changed.
this fix clears the loans field if employee or end date of salary slip is changed.

Please
backport version-15-hotfix
backport version-14-hotfix

@ruchamahabal ruchamahabal merged commit 50002d3 into frappe:develop Feb 28, 2025
7 checks passed
ruchamahabal added a commit that referenced this pull request Feb 28, 2025
…2810

fix: clear loans on employee and salary slip date change (backport #2810)
ruchamahabal added a commit that referenced this pull request Feb 28, 2025
…2810

fix: clear loans on employee and salary slip date change (backport #2810)
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.

2 participants