You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "Abdelrahman-358 (via GitHub)" <gi...@apache.org> on 2026/02/15 09:20:35 UTC
[PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Abdelrahman-358 opened a new pull request, #5500:
URL: https://github.com/apache/fineract/pull/5500
## 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!
- [x] Write the commit message as per [our guidelines](https://github.com/apache/fineract/blob/develop/CONTRIBUTING.md#pull-requests)
- [x] Acknowledge that we will not review PRs that are not passing the build _("green")_ - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
- [x] Create/update [unit or integration tests](https://fineract.apache.org/docs/current/#_testing) for verifying the changes made.
- [x] Follow our [coding conventions](https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions).
- [ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
- [x] [This PR must not be a "code dump"](https://cwiki.apache.org/confluence/display/FINERACT/Pull+Request+Size+Limit). Large changes can be made in a branch, with assistance. Ask for help on the [developer mailing list](https://fineract.apache.org/#contribute).
Your assigned reviewer(s) will follow our [guidelines for code reviews](https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide).
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #5500:
URL: https://github.com/apache/fineract/pull/5500#discussion_r2816781818
##########
integration-tests/src/test/java/org/apache/fineract/integrationtests/common/savings/SavingsAccountHelper.java:
##########
@@ -1293,6 +1294,31 @@ public static Integer openSavingsAccount(final RequestSpecification requestSpec,
return savingsId;
}
+ // TODO: Rewrite to use fineract-client instead!
+ // 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,
Review Comment:
Please dont introduce new functionalities which are not using the fineract-client framework!
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-3986682221
@rhopman @bharathc27 Can you please review the PR from business point of view?
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-4375667638
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.
--
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: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-3914439864
@rhopman @bharathc27 Can you please review the PR from business point of view?
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "Abdelrahman-358 (via GitHub)" <gi...@apache.org>.
Abdelrahman-358 commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-3903943229
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?
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "rhopman (via GitHub)" <gi...@apache.org>.
rhopman commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-4388262782
Since this PR appears to be abandoned, I've created a new one: #5827.
--
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: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "rhopman (via GitHub)" <gi...@apache.org>.
rhopman commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-4003978213
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 Bypass
The `hasGroupSavingsAccountGuarantor` flag currently **disables the self-guarantee validation entirely**. This means a client could get a loan approved with:
- Group savings guarantee: 2,500 (25% external)
- Own funds: **0**
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 Support
I 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:
```java
if (loan.getGroupId() != null && loan.getGroupId().equals(savingsAccount.getGroupId())) {
// Count as self-guarantee
} else {
// Count as external guarantee
}
```
### Business Logic
The complete logic should be:
- **Group loan** with **same group's savings** → self-guarantee
- **Client loan** with **any group savings** → external guarantee (you have this)
- **Group loan** with **different group's savings** → external guarantee
### Suggested Changes
1. **Remove lines 119 and 146** (the `hasGroupSavingsAccountGuarantor` flag and its usage)
2. **Update the classification logic** (lines 128-136) to handle group loans properly
3. **Add a test** for group loan + same group savings scenario
4. **(Optional)** Migrate the test helper to use fineract-client instead of the deprecated approach
Let me know if you need help or clarification!
--
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
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "Abdelrahman-358 (via GitHub)" <gi...@apache.org>.
Abdelrahman-358 commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-4186822051
> @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 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: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #5500:
URL: https://github.com/apache/fineract/pull/5500#issuecomment-4177697731
@Abdelrahman-358 Gentle reminder.
--
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: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara… [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy closed pull request #5500: FINERACT-2476: Enable Group Savings Accounts as Guarantors with Guara…
URL: https://github.com/apache/fineract/pull/5500
--
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: issues-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org