adamsaghy commented on code in PR #5053:
URL: https://github.com/apache/fineract/pull/5053#discussion_r2464882561
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -1304,6 +1304,15 @@ public CommandProcessingResult
chargebackLoanTransaction(final Long loanId, fina
validateLoanTransactionAmountChargeBack(loanTransaction,
newTransaction);
+ if (loan.isInterestBearing() && loan.isInterestRecalculationEnabled())
{
+ if (loan.isProgressiveSchedule() &&
((loan.hasChargeOffTransaction() && loan.hasAccelerateChargeOffStrategy())
+ || loan.hasContractTerminationTransaction()
+ || (loan.isInterestRecalculationEnabled() &&
loan.hasReAgingTransaction()))) {
+ final ScheduleGeneratorDTO scheduleGeneratorDTO =
loanUtilService.buildScheduleGeneratorDTO(loan, null);
+ loanScheduleService.regenerateRepaymentSchedule(loan,
scheduleGeneratorDTO);
+ }
+ }
Review Comment:
I think this should be moved into the
`org.apache.fineract.portfolio.loanaccount.service.LoanWritePlatformServiceJpaRepositoryImpl#handleChargebackTransaction`
method.
--
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]