alberto-art3ch commented on code in PR #4234:
URL: https://github.com/apache/fineract/pull/4234#discussion_r1906508367
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanScheduleService.java:
##########
@@ -84,7 +84,7 @@ public ChangedTransactionDetail
recalculateScheduleFromLastTransaction(final Loa
public void regenerateRepaymentScheduleWithInterestRecalculation(final
Loan loan, final ScheduleGeneratorDTO generatorDTO) {
final LocalDate lastTransactionDate =
loan.getLastUserTransactionDate();
final LoanScheduleDTO loanSchedule =
loan.getRecalculatedSchedule(generatorDTO);
- if (loanSchedule == null) {
+ if (loanSchedule == null || loan.isChargedOff()) {
Review Comment:
Updated!
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -2699,8 +2699,8 @@ public void processPostDisbursementTransactions() {
}
public LoanScheduleDTO getRecalculatedSchedule(final ScheduleGeneratorDTO
generatorDTO) {
- if (!this.repaymentScheduleDetail().isEnableDownPayment()
- &&
(!this.repaymentScheduleDetail().isInterestRecalculationEnabled() || isNpa ||
isChargedOff())) {
+ if (!this.repaymentScheduleDetail().isEnableDownPayment() &&
(!this.repaymentScheduleDetail().isInterestRecalculationEnabled()
Review Comment:
Updated!
--
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]