FINERACT-2107: Merchant issued refund linked to related interest refund
- on reversal reverse interest refund aswell
This commit is contained in:
+4
@@ -868,6 +868,10 @@ public class LoanAccountDomainServiceJpa implements LoanAccountDomainService {
|
||||
|
||||
if (shouldCreateInterestRefundTransaction) {
|
||||
interestRefundTransaction = createInterestRefundLoanTransaction(loan, transactionDate, transactionAmount);
|
||||
if (interestRefundTransaction != null) {
|
||||
interestRefundTransaction.getLoanTransactionRelations().add(LoanTransactionRelation
|
||||
.linkToTransaction(interestRefundTransaction, refundTransaction, LoanTransactionRelationTypeEnum.RELATED));
|
||||
}
|
||||
}
|
||||
|
||||
final LoanRepaymentScheduleTransactionProcessor loanRepaymentScheduleTransactionProcessor = transactionProcessorFactory
|
||||
|
||||
Reference in New Issue
Block a user