Skip to content

FINERACT-1950: Global configuration to disallow backdated transactions - #6124

Open
Abhishek6122008 wants to merge 1 commit into
apache:developfrom
Abhishek6122008:feature/FINERACT-1950-disallow-backdated-transactions
Open

FINERACT-1950: Global configuration to disallow backdated transactions#6124
Abhishek6122008 wants to merge 1 commit into
apache:developfrom
Abhishek6122008:feature/FINERACT-1950-disallow-backdated-transactions

Conversation

@Abhishek6122008

@Abhishek6122008 Abhishek6122008 commented Jul 11, 2026

Copy link
Copy Markdown
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 our guidelines
  • 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 our 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
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch 2 times, most recently from 55f079a to 55a5827 Compare July 13, 2026 07:00
@Abhishek6122008
Abhishek6122008 marked this pull request as draft July 13, 2026 09:56
@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch from 55a5827 to c474a80 Compare July 14, 2026 14:02
@Abhishek6122008
Abhishek6122008 marked this pull request as ready for review July 15, 2026 06:50
@Abhishek6122008

Copy link
Copy Markdown
Contributor Author

Hi @adamsaghy and @Aman-Mittal , If any of you have time pls review my pr.

The diff looks large (~450 lines) but production code is ~90 lines — the rest is unit + integration tests, plus a small test-isolation fix to SavingsAccountsTest so it no longer depends on the shared entity id=1.

could a maintainer kick off the workflow run when you get a chance? Builds and passes locally. Thanks!

@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch from c474a80 to 781f5f8 Compare July 23, 2026 18:10
@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch from ceeb486 to d3ad3f2 Compare July 31, 2026 20:44
adamsaghy
adamsaghy previously approved these changes Aug 3, 2026

@adamsaghy adamsaghy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adamsaghy

Copy link
Copy Markdown
Contributor

@Abhishek6122008 Please rebase and check the failed test cases.

@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch 4 times, most recently from b8118bb to 4910744 Compare August 4, 2026 21:59
@Abhishek6122008

Copy link
Copy Markdown
Contributor Author

@adamsaghy whenever you're free, could you please run the workflow CI checks?

@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch 3 times, most recently from 08f15b3 to 2b3463f Compare August 14, 2026 04:15
Adds the disallow-backdated-transactions global configuration. When
enabled, portfolio (loan and savings) transactions dated more than the
configured number of days before the current business date are rejected;
a value of 0 or unset allows only current-date transactions.

The check lives in a single BackdatedTransactionValidationService shared
by the loan and savings transaction validators, so every transaction
entry point routes through one guard.
@Abhishek6122008
Abhishek6122008 force-pushed the feature/FINERACT-1950-disallow-backdated-transactions branch from 2b3463f to 372545c Compare August 15, 2026 07:52
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.

2 participants