alberto-art3ch commented on code in PR #5356:
URL: https://github.com/apache/fineract/pull/5356#discussion_r2727745572


##########
fineract-progressive-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/transactionprocessor/impl/AdvancedPaymentScheduleTransactionProcessor.java:
##########
@@ -573,7 +573,7 @@ private void handleInterestRefund(final LoanTransaction 
loanTransaction, final T
                     final Money interestAfterRefund = 
interestRefundService.totalInterestByTransactions(this, loan.getId(), 
targetDate,
                             modifiedTransactions, unmodifiedTransactionIds);
                     final Money newAmount = 
interestBeforeRefund.minus(progCtx.getSumOfInterestRefundAmount()).minus(interestAfterRefund);
-                    loanTransaction.updateAmount(newAmount.getAmount());
+                    loanTransaction.updateAmount(newAmount.abs().getAmount());

Review Comment:
   Code updated to use other approach, Thanks!



-- 
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