added Override method for getEffectiveInterestRateAsFraction

This commit is contained in:
Pramod Nuthakki
2014-06-18 17:16:25 +05:30
parent 9aa9473c8c
commit c26bac92d8
2 changed files with 12 additions and 0 deletions
@@ -131,6 +131,12 @@ public class FixedDepositAccount extends SavingsAccount {
if (!dataValidationErrors.isEmpty()) { throw new PlatformApiDataValidationException(dataValidationErrors); }
}
@Override
protected BigDecimal getEffectiveInterestRateAsFraction(final MathContext mc, final LocalDate interestPostingUpToDate) {
boolean isPreMatureClosure = false;
return getEffectiveInterestRateAsFraction(mc, interestPostingUpToDate, isPreMatureClosure);
}
protected BigDecimal getEffectiveInterestRateAsFraction(final MathContext mc, final LocalDate interestPostingUpToDate,
final boolean isPreMatureClosure) {
@@ -164,6 +164,12 @@ public class RecurringDepositAccount extends SavingsAccount {
if (!dataValidationErrors.isEmpty()) { throw new PlatformApiDataValidationException(dataValidationErrors); }
}
@Override
protected BigDecimal getEffectiveInterestRateAsFraction(final MathContext mc, final LocalDate interestPostingUpToDate) {
boolean isPreMatureClosure = false;
return getEffectiveInterestRateAsFraction(mc, interestPostingUpToDate, isPreMatureClosure);
}
protected BigDecimal getEffectiveInterestRateAsFraction(final MathContext mc, final LocalDate interestPostingUpToDate,
final boolean isPreMatureClosure) {