adamsaghy commented on code in PR #4867:
URL: https://github.com/apache/fineract/pull/4867#discussion_r2219020458


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -3010,6 +3013,141 @@ public CommandProcessingResult makeRefund(final Long 
loanId, final LoanTransacti
                 .build();
     }
 
+    @Transactional
+    @Override
+    public CommandProcessingResult makeManualInterestRefund(final Long loanId, 
final Long transactionId, final JsonCommand command) {
+        
loanTransactionValidator.validateManualInterestRefundTransaction(command.json());
+        Loan loan = loanAssembler.assembleFrom(loanId);
+        if (loan == null) {
+            throw new LoanNotFoundException(loanId);
+        }
+        final LoanTransaction targetTransaction = loan.getLoanTransaction(txn 
-> txn.getId() != null && txn.getId().equals(transactionId));

Review Comment:
   Please fetch this from database... we are moving away from 
`loan.getLoanTransaction`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to