FINERACT-1755:withdrawal fee is not considered for interest calculation

This commit is contained in:
logoutdhaval
2022-10-10 14:51:56 +02:00
committed by Arnold Gálovics
parent 37205bef39
commit 17e5eae7a3
2 changed files with 4 additions and 4 deletions
@@ -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);
}
}
@@ -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) {