Skip to content

Commit

Permalink
Merge pull request #97 from Ceviant/CEV-174
Browse files Browse the repository at this point in the history
CEV-174 Fix Interest Posting and Re-Investment
  • Loading branch information
sesanp4 authored Dec 20, 2024
2 parents 95ec187 + 527f360 commit dd74378
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public List<LocalDateInterval> determineInterestPostingPeriods(final LocalDate s
log.info(
" --startInterestCalculationLocalDate-- {} -- Period Date is Huge here --interestPostingUpToDate-> {} ---interestPostingLocalDate->{}",
startInterestCalculationLocalDate, interestPostingUpToDate, interestPostingLocalDate);
break;
}
} else {
periodEndDate = interestPostingLocalDate.minusDays(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ public DepositAccountTermAndPreClosure copy(BigDecimal depositAmount) {
final DepositPreClosureDetail preClosureDetail = this.preClosureDetail.copy();
final DepositTermDetail depositTermDetail = this.depositTermDetail.copy();
final LocalDate expectedFirstDepositOnDate = null;
final Boolean transferInterestToLinkedAccount = false;
final Boolean transferInterestToLinkedAccount = this.transferInterestToLinkedAccount;

final DepositAccountOnClosureType accountOnClosureType = null;
final Long transferToSavingsId = null;
final DepositAccountOnClosureType accountOnClosureType = DepositAccountOnClosureType.fromInt(this.onAccountClosureType);
final Long transferToSavingsId = this.transferToSavingsAccountId;
return DepositAccountTermAndPreClosure.createNew(preClosureDetail, depositTermDetail, account, actualDepositAmount, maturityAmount,
maturityDate, depositPeriod, depositPeriodFrequency, expectedFirstDepositOnDate, accountOnClosureType,
transferInterestToLinkedAccount, transferToSavingsId);
Expand All @@ -326,4 +326,5 @@ public Integer getOnAccountClosureType() {
public Long getTransferToSavingsAccountId() {
return transferToSavingsAccountId;
}

}

0 comments on commit dd74378

Please sign in to comment.