You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2022/09/04 22:19:04 UTC
[GitHub] [fineract] josehernandezfintecheandomx commented on a diff in pull request #2566: FINERACT-1721: Real time Loan Delinquency Classification
josehernandezfintecheandomx commented on code in PR #2566:
URL: https://github.com/apache/fineract/pull/2566#discussion_r962376695
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java:
##########
@@ -6864,4 +6860,23 @@ public Collection<LoanCharge> getCharges() {
// Return empty set instead of null to avoid NPE
return Optional.ofNullable(this.charges).orElse(new HashSet<>());
}
+
+ public boolean hasDelinquencyBucket() {
+ return (getLoanProduct().getDelinquencyBucket() != null);
+ }
+
+ public Long getAgeOfOverdueDays(LocalDate baseDate) {
+ Long ageOfOverdueDays = 0L;
+
+ if (this.repaymentScheduleInstallments.size() > 0) {
Review Comment:
Done
--
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: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org