adamsaghy commented on code in PR #4286:
URL: https://github.com/apache/fineract/pull/4286#discussion_r1930258528
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -2666,6 +2666,10 @@ public LocalDate getMaturityDate() {
return this.actualMaturityDate;
}
+ public boolean isMatured(final LocalDate referenceDate) {
+ return (referenceDate.compareTo(this.actualMaturityDate) <= 0);
Review Comment:
This seems incorrect to me. It should be just the opposite, no? If the
reference date is greater than the maturity date then the loan matured.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]