Skip to content

fix(timesheet): prevent backdated time entry beyond allowed limit#890

Open
RustyCoderX wants to merge 1 commit intortCamp:mainfrom
RustyCoderX:fix-backdated-timesheet-entry
Open

fix(timesheet): prevent backdated time entry beyond allowed limit#890
RustyCoderX wants to merge 1 commit intortCamp:mainfrom
RustyCoderX:fix-backdated-timesheet-entry

Conversation

@RustyCoderX
Copy link

This fix resolves the issue where users could attempt to enter time for dates beyond the allowed backdated limit, which caused the backend error “Backdated timeentry not allowed.” A new backend API was added to fetch backdated timesheet settings and calculate the oldest allowed date based on user role and configuration. These settings are stored in the frontend state and used in the timesheet table to disable dates older than the allowed limit, visually gray them out, and show a tooltip indicating that the backdated limit has been exceeded. This prevents invalid entries at the UI level while respecting the configured limits for employees and managers.

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.

1 participant