FINERACT-1755:withdrawal fee is not considered for interest calculation
This commit is contained in:
committed by
Arnold Gálovics
parent
37205bef39
commit
17e5eae7a3
+3
-3
@@ -89,15 +89,15 @@ public class SavingsAccountTransactionEnumData implements Serializable {
|
||||
}
|
||||
|
||||
public boolean isAnnualFee() {
|
||||
return this.value.equals(SavingsAccountTransactionType.ANNUAL_FEE.getValue().toString());
|
||||
return Long.valueOf(SavingsAccountTransactionType.ANNUAL_FEE.getValue()).equals(this.id);
|
||||
}
|
||||
|
||||
public boolean isPayCharge() {
|
||||
return this.value.equals(SavingsAccountTransactionType.PAY_CHARGE.getValue().toString());
|
||||
return Long.valueOf(SavingsAccountTransactionType.PAY_CHARGE.getValue()).equals(this.id);
|
||||
}
|
||||
|
||||
public boolean isWithdrawalFee() {
|
||||
return this.value.equals(SavingsAccountTransactionType.WITHDRAWAL_FEE.getValue().toString());
|
||||
return Long.valueOf(SavingsAccountTransactionType.WITHDRAWAL_FEE.getValue()).equals(this.id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -215,7 +215,7 @@ public class SavingsInterestPostingJobIntegrationTest {
|
||||
for (Map.Entry<String, Object> entry : interestPostingTransaction.entrySet()) {
|
||||
LOG.info("{} - {}", entry.getKey(), entry.getValue().toString());
|
||||
}
|
||||
assertEquals("800.4932", interestPostingTransaction.get("runningBalance").toString(), "Equality check for Balance");
|
||||
assertEquals("800.4384", interestPostingTransaction.get("runningBalance").toString(), "Equality check for Balance");
|
||||
}
|
||||
|
||||
private Integer createSavingsAccountDailyPosting(final Integer clientID, final String startDate) {
|
||||
|
||||
Reference in New Issue
Block a user