-
Notifications
You must be signed in to change notification settings - Fork 2.3k
FINERACT-2399: Add global config to block transactions on closed/overpaid loans #5349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
FINERACT-2399: Add global config to block transactions on closed/overpaid loans #5349
Conversation
|
Please dont forget to run |
00f29ec to
7a00cba
Compare
|
Please dont forget to run |
Thanks for the reminder! Just a quick clarification: Is it sufficient to run these checks specifically on the modules I've modified (e.g., ./gradlew :integration-tests:spotlessApply ...), or do you require them to be run on the entire project root? Running them on the root seems to trigger issues in unrelated modules. |
Its just easier to run this as i shared and fix all places ;) |
7a00cba to
b28f4e5
Compare
adamsaghy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credit Balance Refund txn cannot be blocked! That is for handle overpaid status correctly!
| <sql> | ||
| SELECT SETVAL('c_configuration_id_seq', COALESCE(MAX(id), 0)+1, false ) FROM c_configuration; | ||
| </sql> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think we need this. Are you sure this should be here?
adamsaghy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add proper testing to ensure correct behavior!
ebb2fc9 to
eac6fa3
Compare
Done |
7c54556 to
28ca56a
Compare
28ca56a to
fb8055a
Compare
Description
Fixes FINERACT-2399
This PR adds a new global configuration
block-transactions-on-closed-overpaid-loansthat allows organizations to prevent monetary transactions on loan accounts with closed or overpaid status.Problem
Currently, Fineract allows monetary transactions (repayments, refunds, charges, etc.) on loans that are in closed or overpaid status. This can cause:
Solution
Added a global configuration toggle: