Skip to content

Conversation

somasorosdpc
Copy link
Contributor

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!

  • 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.

@budaidev budaidev force-pushed the FINERACT-2324/remove-fetch-all-transactions-from-cob-jobs branch 8 times, most recently from 27c3c3a to 0554d40 Compare September 18, 2025 14:36
@budaidev budaidev force-pushed the FINERACT-2324/remove-fetch-all-transactions-from-cob-jobs branch 2 times, most recently from fe45358 to 23a45ae Compare September 18, 2025 15:58
@budaidev budaidev force-pushed the FINERACT-2324/remove-fetch-all-transactions-from-cob-jobs branch 5 times, most recently from 9d31351 to 63aa883 Compare September 22, 2025 17:30

// Create REPLAYED relation for user-initiated transactions (those with external IDs)
// This distinguishes legitimate business operations from internal processing artifacts
if (originalExternalId != null) {
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.

@budaidev budaidev force-pushed the FINERACT-2324/remove-fetch-all-transactions-from-cob-jobs branch from 63aa883 to db9b2d8 Compare September 30, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants