Repository navigation
FINERACT-2080: Refactor Loan Transaction Checks and Related Methods - #4443
Conversation
|
I think you didn't see contribution guide...make sure you always include the proper Fineract jira ticket in the PR title and in the commit message as well. PR title and commit message must be the same. |
| .orElse(getDisbursementDate()); | ||
| } | ||
|
|
||
| private boolean isValidTransaction(LoanTransaction transaction) { |
There was a problem hiding this comment.
I dont really like the name of this method... isValidTransaction is misleading... income posting and accrual related transactions are all "valid" transactions, however here they should not be considered... Maybe you want to use something that more descriptive about the filtering, like: "filter reverse and accrual related transactions" or something like that...
|
Thank you for the feedback and suggestions. I've noted the issues and will be making the required changes shortly. Please stay tuned for an updated version of the PR. Thanks for your review! |
|
@adamsaghy please review the pr . |
|
@Harsh-Srivastav123 |
FINERACT-2080: Refactoring Loan entity
c34746f to
9c9254e
Compare
|
@a7med3del1973 squashed commits is done . |
Description
This PR refactors several loan transaction methods to improve code clarity, maintainability, and performance. The changes include:
1. Refactoring
doPostLoanTransactionCheckscheckAndHandleLoanStatus.resetOverpaidDateIfNeededto manage the overpaid date reset independently.2. Optimizing
getLastUserTransactionDateisValidTransactionhelper method to clearly define valid transactions.3. Simplifying
isChargeOffOnDateThese improvements modularize the logic, making the code easier to read, maintain, and extend without altering existing functionality.
JIRA Issue: FINERACT-2080
(#1284).
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
Write the commit message as per https://github.com/apache/fineract/#pull-requests
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.
Create/update unit or integration tests for verifying the changes made.
Follow coding conventions at 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
Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)
FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.