FINERACT-2232: add income capitalization principal handling and repayment schedule calculations on loans

This commit is contained in:
mark.vituska
2025-05-27 10:02:25 +02:00
committed by Adam Saghy
parent 07839951b9
commit e5329f6fe3
53 changed files with 1007 additions and 516 deletions
@@ -310,6 +310,12 @@ public final class DateUtils {
return isBeforeBusinessDate(localDate);
}
public static boolean isDateInRangeFromInclusiveToExclusive(final LocalDate fromInclusive, final LocalDate upToNotInclusive,
final LocalDate target) {
return (DateUtils.isEqual(target, fromInclusive) || DateUtils.isAfter(target, fromInclusive))
&& DateUtils.isBefore(target, upToNotInclusive);
}
public static int compare(LocalDate first, LocalDate second) {
return compare(first, second, true);
}
@@ -26,7 +26,7 @@ public interface NoteWritePlatformService {
CommandProcessingResult createNote(JsonCommand command);
void createLoanNote(Long loanId, String note);
void createLoanTransactionNote(Long loanTransactionId, String note);
CommandProcessingResult updateNote(JsonCommand command);