Merge pull request #2379 from logoutdhaval/fineract-1645
FINERACT-1645:Invalid Balance after Interest posting with withdrawal fee
This commit is contained in:
+5
-1
@@ -155,7 +155,7 @@ public final class SavingsAccountTransactionData implements Serializable {
|
||||
}
|
||||
|
||||
public boolean isWithdrawalFeeAndNotReversed() {
|
||||
return this.transactionType.isWithdrawalFee() && isNotReversed();
|
||||
return this.transactionType.isFeeDeduction() && isNotReversed();
|
||||
}
|
||||
|
||||
public boolean isPayCharge() {
|
||||
@@ -186,6 +186,10 @@ public final class SavingsAccountTransactionData implements Serializable {
|
||||
return Money.of(currency, this.runningBalance);
|
||||
}
|
||||
|
||||
public Money getRunningBalance(final MonetaryCurrency currency) {
|
||||
return Money.of(currency, this.runningBalance);
|
||||
}
|
||||
|
||||
public boolean isDepositAndNotReversed() {
|
||||
return this.transactionType.isDeposit() && isNotReversed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user