FINERACT-1981: Fix interest refund transaction with zero amount

This commit is contained in:
Janos Meszaros
2024-11-22 17:11:15 +01:00
committed by Adam Saghy
parent e95b3ff25c
commit 34b165aa0e
4 changed files with 47 additions and 5 deletions
@@ -18,6 +18,7 @@
*/
package org.apache.fineract.portfolio.loanaccount.service;
import java.math.MathContext;
import java.time.LocalDate;
import java.util.List;
import org.apache.fineract.organisation.monetary.domain.MonetaryCurrency;
@@ -36,5 +37,5 @@ public interface InterestRefundService {
Money totalInterestByTransactions(LoanRepaymentScheduleTransactionProcessor processor, Long loanId,
LocalDate relatedRefundTransactionDate, List<LoanTransaction> newTransactions, List<Long> oldTransactionIds);
Money getTotalInterestRefunded(List<LoanTransaction> loanTransactions, MonetaryCurrency currency);
Money getTotalInterestRefunded(List<LoanTransaction> loanTransactions, MonetaryCurrency currency, MathContext mc);
}