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.
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.
I dont think we need this. Are you sure this should be here?
adamsaghy
left a comment
There was a problem hiding this comment.
Please add proper testing to ensure correct behavior!
ebb2fc9 to
eac6fa3
Compare
Done |
eac6fa3 to
ba77770
Compare
ba77770 to
5407dfb
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: