FINERACT-2312: Accruals added for savings accounts (#4885)

This commit is contained in:
Christopher Sayhaed Giron Vega
2025-08-20 15:00:09 -06:00
committed by GitHub
parent c936c19b85
commit b349cf6831
24 changed files with 1074 additions and 5 deletions
@@ -58,7 +58,7 @@ public enum JobName {
PURGE_EXTERNAL_EVENTS("Purge External Events"), //
PURGE_PROCESSED_COMMANDS("Purge Processed Commands"), //
ACCRUAL_ACTIVITY_POSTING("Accrual Activity Posting"), //
;
ADD_PERIODIC_ACCRUAL_ENTRIES_FOR_SAVINGS_WITH_INCOME_POSTED_AS_TRANSACTIONS("Add Accrual Transactions For Savings"); //
private final String name;
@@ -104,6 +104,7 @@ public class SavingsApiConstants {
public static final String activeParamName = "active";
public static final String nameParamName = "name";
public static final String shortNameParamName = "shortName";
public static final String interestReceivableAccount = "interestReceivableAccountId";
public static final String descriptionParamName = "description";
public static final String currencyCodeParamName = "currencyCode";
public static final String digitsAfterDecimalParamName = "digitsAfterDecimal";
@@ -64,6 +64,10 @@ public final class PostingPeriod {
private Integer financialYearBeginningMonth;
public void setOverdraftInterestRateAsFraction(BigDecimal overdraftInterestRateAsFraction) {
this.overdraftInterestRateAsFraction = overdraftInterestRateAsFraction;
}
public static PostingPeriod createFrom(final LocalDateInterval periodInterval, final Money periodStartingBalance,
final List<SavingsAccountTransactionDetailsForPostingPeriod> orderedListOfTransactions, final MonetaryCurrency currency,
final SavingsCompoundingInterestPeriodType interestCompoundingPeriodType,
@@ -545,4 +549,10 @@ public final class PostingPeriod {
return this.financialYearBeginningMonth;
}
// public List<CompoundingPeriod> getCompoundingPeriods() {return compoundingPeriods;}
public Money getClosingBalance() {
return closingBalance;
}
}