mariiaKraievska commented on code in PR #5053:
URL: https://github.com/apache/fineract/pull/5053#discussion_r2465445066
##########
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 tried to make this changes, but now I get this error "During
synchronization a new object was found through a relationship that was not
marked cascade PERSIST:
org.apache.fineract.portfolio.loanaccount.domain.LoanTransaction"
--
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]