FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara…#5500
Conversation
|
Hi @rhopman, I opened a draft PR with the proposed fix for FINERACT-2476. Could you please confirm whether this matches the intended behavior or clarify any missing requirements? |
…ntee Percentage Requirements
7d4df3d to
6612784
Compare
| // Example: org.apache.fineract.integrationtests.common.loans.LoanTransactionHelper.disburseLoan(java.lang.Long, | ||
| // org.apache.fineract.client.models.PostLoansLoanIdRequest) | ||
| @Deprecated(forRemoval = true) | ||
| public static Integer openGroupSavingsAccount(final RequestSpecification requestSpec, final ResponseSpecification responseSpec, |
There was a problem hiding this comment.
Please dont introduce new functionalities which are not using the fineract-client framework!
|
@rhopman @bharathc27 Can you please review the PR from business point of view? |
|
@rhopman @bharathc27 Can you please review the PR from business point of view? |
|
Hi @Abdelrahman-358! Thanks for tackling this issue. I think the approach is on the right track, but there are a few critical issues that concern me: Validation BypassThe
Even if the product requires minimum own-funds. I would say the group savings should count as external guarantee, but other validation requirements should still apply. Fix: Remove the flag and the conditional check on line 146. All validations should run normally - we're just classifying guarantees differently. Missing Group Loan SupportI would say a group loan that has a group savings account from the same group as guarantor should count as self-guarantee. Currently, all group savings accounts are treated as external guarantee. We need to check: if (loan.getGroupId() != null && loan.getGroupId().equals(savingsAccount.getGroupId())) {
// Count as self-guarantee
} else {
// Count as external guarantee
}Business LogicThe complete logic should be:
Suggested Changes
Let me know if you need help or clarification! |
|
@Abdelrahman-358 Gentle reminder. |
Hi @adamsaghy , thanks for the reminder. I missed Ralph Hopman's response earlier. Sorry about that. I’ll start working on the requested updates, but I have midterm exams this week. I’ll be back with changes as soon as I’m done. |
|
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days. |
|
Since this PR appears to be abandoned, I've created a new one: #5827. |
Description
Describe the changes made and why they were made. (Ignore if these details are present on the associated Apache Fineract JIRA ticket.)
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Your assigned reviewer(s) will follow our guidelines for code reviews.