-
Notifications
You must be signed in to change notification settings - Fork 2.1k
WIP: FINERACT-2324: remove fetch all transactions from cob jobs #5019
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?
WIP: FINERACT-2324: remove fetch all transactions from cob jobs #5019
Conversation
27c3c3a
to
0554d40
Compare
fe45358
to
23a45ae
Compare
…Fix refund validator
9d31351
to
63aa883
Compare
|
||
// Create REPLAYED relation for user-initiated transactions (those with external IDs) | ||
// This distinguishes legitimate business operations from internal processing artifacts | ||
if (originalExternalId != null) { |
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.
external id has not much to do whether it is business operation or internal processing... not necessarily enabled external id for loan transactions...
return true; | ||
} | ||
|
||
// For REPLAYED relations, include only those that are part of legitimate business operations |
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.
why do we need this? i am not fully understand the reasoning behind. Having external id or not has nothing to do with reverse-replay scenarios...
loanAccountTransfersService.updateLoanTransaction(oldTransaction.getId(), newTransaction); | ||
// Create reversal journal entries for old transaction if it exists (reverse-replay scenario) | ||
loanJournalEntryPoster.postJournalEntriesForLoanTransaction(oldTransaction, false, false); | ||
// Only create reversal journal entries for old transaction if the old transaction is not already |
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.
Are you sure? I dont recall any reported bug whether something was incorrectly or double accounted.
63aa883
to
db9b2d8
Compare
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!
FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.