adamsaghy commented on code in PR #4236:
URL: https://github.com/apache/fineract/pull/4236#discussion_r1899450439
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -3569,4 +3569,8 @@ public LoanRepaymentScheduleTransactionProcessor
getTransactionProcessor() {
public boolean isProgressiveSchedule() {
return getLoanProductRelatedDetail().getLoanScheduleType() ==
PROGRESSIVE;
}
+
+ public boolean isTransactionBeforeChargeOff(final boolean isChargedOff) {
+ return !isChargedOff ||
!LoanChargeOffBehaviour.ZERO_INTEREST.equals(this.getLoanProductRelatedDetail().getChargeOffBehaviour());
Review Comment:
When the loan got charged-off from that moment we dont wanna recalculate
interest for any charge-off behaviours, so i would say we are safe to go
without the 2nd condition ;)
--
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]