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 (backport #2810) #2822

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 28, 2025

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


This is an automatic backport of pull request #2810 done by Mergify.

@mergify mergify bot requested a review from ruchamahabal as a code owner February 28, 2025 13:37
@ruchamahabal ruchamahabal merged commit 3da69f9 into version-15-hotfix Feb 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants