adamsaghy commented on code in PR #3836:
URL: https://github.com/apache/fineract/pull/3836#discussion_r1548265863
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/LoanApplicationTerms.java:
##########
@@ -1871,4 +1871,16 @@ public LocalDate getRepaymentStartDate() {
: getSubmittedOnDate();
}
+ public boolean isLastInstallment(final Integer installmentNumber) {
+ Integer numberOfRepayments = getNumberOfRepayments();
+ if (isDownPaymentEnabled()) {
Review Comment:
Also while the the installment number is increased when a down payment
period added, the period number is not. So you might wanna use that to decide
on whether it is the last or not...
--
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]