-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization #5102
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
Merged
adamsaghy
merged 2 commits into
apache:develop
from
openMF:FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization
Nov 21, 2025
Merged
FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization #5102
adamsaghy
merged 2 commits into
apache:develop
from
openMF:FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization
Nov 21, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57ebadc to
acc6f6e
Compare
162e543 to
90f37e7
Compare
adamsaghy
reviewed
Nov 3, 2025
.../test/java/org/apache/fineract/test/initializer/global/LoanProductGlobalInitializerStep.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 3, 2025
...rc/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanTransactionRepository.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 3, 2025
.../src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanTransactionService.java
Outdated
Show resolved
Hide resolved
90f37e7 to
0667f0e
Compare
0667f0e to
df85c1d
Compare
adamsaghy
reviewed
Nov 4, 2025
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
...neract/portfolio/loanaccount/domain/transactionprocessor/impl/ProgressiveTransactionCtx.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
...oanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
Comment on lines
2868
to
2905
| if (isEqualInstallmentForInterest) { | ||
| target.setInterestCharged(MathUtil.add(reAgedInstallment.getInterestCharged(), target.getInterestPaid())); | ||
| target.setInterestAccrued(MathUtil.add(target.getInterestAccrued(), reAgedInstallment.getInterestAccrued())); | ||
| } | ||
| if (isEqualInstallmentForFeesAndPenalties) { | ||
| target.setFeeChargesCharged(MathUtil.add(reAgedInstallment.getFeeChargesCharged(), target.getFeeChargesPaid())); | ||
| target.setFeeAccrued(MathUtil.add(target.getInterestAccrued(), reAgedInstallment.getFeeAccrued())); | ||
| target.setPenaltyCharges(MathUtil.add(reAgedInstallment.getPenaltyCharges(), target.getPenaltyChargesPaid())); | ||
| target.setPenaltyAccrued(MathUtil.add(target.getInterestAccrued(), reAgedInstallment.getPenaltyAccrued())); | ||
| } |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets keep the logic where we calculate the model and simply update the balance from there. I dont want to have N+1 logic
adamsaghy
reviewed
Nov 4, 2025
...apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
.../apache/fineract/portfolio/loanaccount/service/ProgressiveLoanInterestRefundServiceImpl.java
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
...oanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
...oanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java
Outdated
Show resolved
Hide resolved
adamsaghy
reviewed
Nov 4, 2025
.../org/apache/fineract/portfolio/loanaccount/service/LoanTransactionProcessingServiceImpl.java
Outdated
Show resolved
Hide resolved
c6e4376 to
fbf6041
Compare
fbf6041 to
90bab4a
Compare
90bab4a to
4f2e27b
Compare
726d94d to
69b6033
Compare
26969e5 to
290b10f
Compare
177a70f to
a1d27ae
Compare
…interest handling options
a1d27ae to
7012cf1
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Describe the changes made and why they were made.
Ignore if these details are present on the associated Apache Fineract JIRA ticket.
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.