Skip to content

Conversation

@alberto-art3ch
Copy link
Contributor

Description

We need the ability to be able to adjust interest rates on a loan on the same day. Currently fineract allows only one interest rate change for a given day. If another interest rate needs to happen using the adjust-schedule api, we need to wait 1 more day before submitting the change.

It would be great to have a way to submit multiple adjust schedules on the same day and then have a way to determine which adjust schedule is currently active.

FINERACT-2421

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per our guidelines
  • 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 our 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
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

Comment on lines 229 to 232
if (optLoanRescheduleRequest.isPresent()) {
LoanRescheduleRequest loanRescheduleRequest = optLoanRescheduleRequest.get();
loanRescheduleRequest.reject(loanRescheduleRequest.getSubmittedByUser(), rescheduleFromDate);
loanRescheduleRequestRepository.save(loanRescheduleRequest);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont like this. This class is a validator, rejecting prior reschedules should not happen here!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also i dont think we should automatically reject is... it is misleading. Leave it APPROVED, but when we fetch these term variations, if the same applies to the same date, take the latter only.

Can it work?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to do the following instead:

  • We are not changing on the LoanRescheduleRequest. It should reflect the original values!

If there is 2 same loan term variations, mark the existing one as isActive=false! Only the latter one will be active and in effect:

  1. Change interest rate from 2 February 2025 to 4%
  • LoanRescheduleRequest is created with PENDING status, No Loan term variations created yet.
  • Once its approved, loan term variation is created
  1. Change interest rate from 2 February 2025 to 5%
  • LoanRescheduleRequest is created with PENDING status, No new Loan term variations created yet.
  • Once its approved, we should check whether there is ACTIVE loan term variation with the same type and date and if so mark this as INACTIVE and create a new loan term variations with the new details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code updated according to the details mentioned above. Thanks!

The ITC enriched to validate:

  • Loan Reschedule Request status
  • Loan Term Variants status
  • Loan interest charged on each Loan Reschedule approve action

Copy link
Contributor

@adamsaghy adamsaghy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly see my concerns!

@alberto-art3ch alberto-art3ch force-pushed the FINERACT-2421/allow-multiple-schedule-adjustments-on-the-same-day-for-interest-change branch from fc4d41d to 5963d64 Compare January 23, 2026 22:40
@alberto-art3ch alberto-art3ch force-pushed the FINERACT-2421/allow-multiple-schedule-adjustments-on-the-same-day-for-interest-change branch from 5963d64 to 96ec11d Compare January 26, 2026 04:25
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