add installment fee type to list of valid types for loans but not savings.
This commit is contained in:
+3
-3
@@ -17,7 +17,7 @@ public enum ChargeTimeType {
|
||||
WITHDRAWAL_FEE(5, "chargeTimeType.withdrawalFee"), // only for savings
|
||||
ANNUAL_FEE(6, "chargeTimeType.annualFee"), // only for savings
|
||||
MONTHLY_FEE(7, "chargeTimeType.monthlyFee"), // only for savings
|
||||
INSTALMENT_FEE(8,"chargeTimeType.instalmentFee");//only for loan charges
|
||||
INSTALMENT_FEE(8, "chargeTimeType.instalmentFee");// only for loan charges
|
||||
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
@@ -36,7 +36,8 @@ public enum ChargeTimeType {
|
||||
}
|
||||
|
||||
public static Object[] validLoanValues() {
|
||||
return new Integer[] { ChargeTimeType.DISBURSEMENT.getValue(), ChargeTimeType.SPECIFIED_DUE_DATE.getValue() };
|
||||
return new Integer[] { ChargeTimeType.DISBURSEMENT.getValue(), ChargeTimeType.SPECIFIED_DUE_DATE.getValue(),
|
||||
ChargeTimeType.INSTALMENT_FEE.getValue() };
|
||||
}
|
||||
|
||||
public static Object[] validSavingsValues() {
|
||||
@@ -109,7 +110,6 @@ public enum ChargeTimeType {
|
||||
return this.value.equals(ChargeTimeType.MONTHLY_FEE.getValue());
|
||||
}
|
||||
|
||||
|
||||
public boolean isInstalmentFee() {
|
||||
return this.value.equals(ChargeTimeType.INSTALMENT_FEE.getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user