alberto-art3ch commented on code in PR #3808:
URL: https://github.com/apache/fineract/pull/3808#discussion_r1535110158
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AbstractProgressiveLoanScheduleGenerator.java:
##########
@@ -102,6 +106,19 @@ public LoanScheduleModel generate(final MathContext mc,
final LoanApplicationTer
// Loan Schedule Exceptions that need to be applied for Loan
Account
LoanTermVariationParams termVariationParams =
applyLoanTermVariations(loanApplicationTerms, scheduleParams, scheduledDueDate);
scheduledDueDate = termVariationParams.scheduledDueDate();
+ log.info("scheduledDueDate {}", scheduledDueDate);
+
+ // Fixed Length Validations - Ensure the last repayment date equal
to Fixed Length
+ if (loanApplicationTerms.getFixedLength() != null) {
+ if
(loanApplicationTerms.getNumberOfRepayments().compareTo(scheduleParams.getInstalmentNumber())
== 0) {
+ if (DateUtils.isBefore(scheduledDueDate, loanEndDate)) {
+ scheduledDueDate = loanEndDate;
+ }
+ }
+
+ isNextRepaymentAvailable =
DateUtils.isBefore(scheduledDueDate, loanEndDate);
+ }
+ log.info("scheduledDueDate {}", scheduledDueDate);
Review Comment:
Removed from this method and class
--
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]