mariiaKraievska commented on code in PR #4292:
URL: https://github.com/apache/fineract/pull/4292#discussion_r1939282436
##########
fineract-loan/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -3581,4 +3581,17 @@ public boolean isChargeOffOnDate(final LocalDate onDate)
{
return (chargeOffTransaction == null) ? false :
(chargeOffTransaction.getDateOf().compareTo(onDate) <= 0);
}
+ public boolean hasMonetaryActivityAfter(final LocalDate transactionDate) {
+ for (LoanTransaction transaction : this.getLoanTransactions()) {
+ if (transaction.getTransactionDate().isAfter(transactionDate) &&
!transaction.isNonMonetaryTransaction()) {
+ return true;
+ }
+ }
+ for (LoanCharge loanCharge : this.getLoanCharges()) {
+ if (!loanCharge.isPaid() &&
loanCharge.getSubmittedOnDate().isAfter(transactionDate)) {
Review Comment:
Done, PTAL
--
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]