Skip to content

Conversation

@somasorosdpc
Copy link
Contributor

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!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made.
  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@somasorosdpc somasorosdpc changed the title FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization WIP: FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization Oct 14, 2025
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch 3 times, most recently from 57ebadc to acc6f6e Compare October 15, 2025 11:02
@somasorosdpc somasorosdpc changed the title WIP: FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization FINERACT-2354: Re-aging Interest Handling Option: Equal Amortization Oct 28, 2025
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch 2 times, most recently from 162e543 to 90f37e7 Compare November 3, 2025 09:28
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from 90f37e7 to 0667f0e Compare November 4, 2025 09:30
@adamsaghy adamsaghy marked this pull request as ready for review November 4, 2025 09:31
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from 0667f0e to df85c1d Compare November 4, 2025 10:46
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()));
}
Copy link
Contributor

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

@MarianaDmytrivBinariks MarianaDmytrivBinariks force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch 3 times, most recently from c6e4376 to fbf6041 Compare November 5, 2025 12:29
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from fbf6041 to 90bab4a Compare November 6, 2025 11:27
@MarianaDmytrivBinariks MarianaDmytrivBinariks force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from 90bab4a to 4f2e27b Compare November 7, 2025 14:37
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch 3 times, most recently from 726d94d to 69b6033 Compare November 18, 2025 16:14
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch 3 times, most recently from 26969e5 to 290b10f Compare November 19, 2025 14:15
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from 177a70f to a1d27ae Compare November 21, 2025 11:17
@somasorosdpc somasorosdpc force-pushed the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch from a1d27ae to 7012cf1 Compare November 21, 2025 12:40
@adamsaghy adamsaghy merged commit 5784cb7 into apache:develop Nov 21, 2025
34 checks passed
@adamsaghy adamsaghy deleted the FINERACT-2354/Re-aging--InterestHandlingOption-EqualAmortization branch November 21, 2025 14:02
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.

3 participants