fynmanoj commented on a change in pull request #1220:
URL: https://github.com/apache/fineract/pull/1220#discussion_r472736753
##########
File path:
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/LoanScheduleModelRepaymentPeriod.java
##########
@@ -154,7 +154,7 @@ public boolean isRecalculatedInterestComponent() {
@Override
public void addInterestAmount(Money interestDue) {
this.interestDue = this.interestDue.plus(interestDue);
- this.totalDue = this.totalDue.plus(principalDue);
+ this.totalDue = this.totalDue.plus(interestDue);
Review comment:
In the add Interest method principle was added to the total due instead
of the interest. which is wrong, as the added interest must reflect in the
total due.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]