Skip to content

Need Validation to Restrict Backdated Entries #47673

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

Open
khaanw opened this issue May 22, 2025 · 2 comments
Open

Need Validation to Restrict Backdated Entries #47673

khaanw opened this issue May 22, 2025 · 2 comments

Comments

@khaanw
Copy link

khaanw commented May 22, 2025

Is your feature request related to a problem? Please describe.
Yes. Currently, the ERP system allows users to submit transactions with any past date. This can lead to data integrity issues, as it opens up possibilities for users to manipulate historical data without control.

Describe the solution you'd like
We would like to implement a backdate transaction tolerance limit in the ERP system. Specifically, users should only be allowed to submit transactions with a posting date no more than 3 days (H-3) before the current date. If a user attempts to enter a transaction older than 3 days, the system should block the submission and display an error message like:
"You are not allowed to post transactions more than 3 days in the past."

Describe alternatives you've considered
An alternative could be to implement a role-based override or approval mechanism for backdated entries beyond the 3-day limit. However, the primary goal is to set a strict restriction unless otherwise authorized.

Additional context
Steps to Replicate the Issue:

Go to a transaction form (e.g., Stock Entry, Sales Invoice, Journal Entry, etc.).

Set the posting date to more than 3 days in the past.

Try to submit the transaction.

Observe if the system restricts the submission.

Current Behavior:
The ERP system currently allows users to post backdated transactions without any limit.

Expected Behavior:
The system should enforce a validation rule preventing submission of any transaction dated more than 3 days in the past. The user should receive an appropriate error message if they try to do so.

@ankush ankush transferred this issue from frappe/frappe May 22, 2025
@ankush
Copy link
Member

ankush commented May 22, 2025

Already exists.. partly:

Image

Image

@ankush
Copy link
Member

ankush commented May 22, 2025

accounts don't have "days" config, but if you want that can be handled with few lines of customization to update the frozen date daily.

Perhaps it should just be added to core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants