-
Notifications
You must be signed in to change notification settings - Fork 2.3k
FINERACT-2421: Adjust interest with MIR and CBR results in improper allocations #5356
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
base: develop
Are you sure you want to change the base?
Conversation
a94a897 to
a030150
Compare
| modifiedTransactions, unmodifiedTransactionIds); | ||
| final Money newAmount = interestBeforeRefund.minus(progCtx.getSumOfInterestRefundAmount()).minus(interestAfterRefund); | ||
| loanTransaction.updateAmount(newAmount.getAmount()); | ||
| loanTransaction.updateAmount(newAmount.abs().getAmount()); |
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.
I cant imagine how this could be true... The interest cannot be higher than it was before the refund...
adamsaghy
left a comment
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.
Kindly review my concern!
b49a834 to
b75522d
Compare
| @Override | ||
| @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW) | ||
| public Money totalInterestByTransactions(LoanRepaymentScheduleTransactionProcessor processor, final Long loanId, | ||
| public Money totalInterestByTransactions(LoanRepaymentScheduleTransactionProcessor processor, final Loan loan, |
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.
We cannot do this. The changes on the loan entity might be saved outside of this transactions which is unwanted behaviour!
b75522d to
5d8d95f
Compare
Description
Adjust interest with a Loan Reschedule using the Interest Rate on account with MIR / CBR results in improper allocations on account
FINERACT-2421
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.