oleksii-novikov-onix commented on code in PR #4288:
URL: https://github.com/apache/fineract/pull/4288#discussion_r1937129700


##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/data/ProgressiveLoanInterestScheduleModel.java:
##########
@@ -175,7 +176,9 @@ public Optional<RepaymentPeriod> 
updateInterestPeriodsForInterestPause(final Loc
 
     private boolean isPeriodInRange(final RepaymentPeriod repaymentPeriod, 
final LocalDate fromDate, final LocalDate endDate) {
         return DateUtils.isDateInRangeFromExclusiveToInclusive(fromDate, 
repaymentPeriod.getFromDate(), repaymentPeriod.getDueDate())
-                || DateUtils.isDateInRangeFromExclusiveToInclusive(endDate, 
repaymentPeriod.getFromDate(), repaymentPeriod.getDueDate());
+                || DateUtils.isDateInRangeFromExclusiveToInclusive(endDate, 
repaymentPeriod.getFromDate(), repaymentPeriod.getDueDate())
+                || (!DateUtils.isAfter(fromDate, repaymentPeriod.getFromDate())

Review Comment:
   The final worked condition:
   `period.getFromDate().isBefore(endDate) && 
!period.getDueDate().isBefore(fromDate)`



-- 
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]

Reply via email to