Locking Records in Time Tracker
You can use the Locking
plugin in Time Tracker to lock records for modifications on schedule defined for your group. The locking feature applies to users, who do not have the override_date_lock
access right in their role (such as regular users). Supervisors and higher managers, by default, can create and modify records even with the Locking plugin enabled, unless the override_date_lock
is removed from their role.
Potential applications include a scenario when time entries must be ready by a specific moment for payroll processing, or something similar.
Note 1: The Locking plugin is a replacement of the legacy Lock Interval in Days
feature in Time Tracker prior to version 126.96.36.19968. It used to specify a number of days. Records older than this number of days were locked for all users in earlier Time Tracker versions.
Note 2: In addition to locking the following situations make records non-editable.
- If record is approved with the Report Approval plugin.
- If record is assigned to a timesheet with the Timesheets plugin.
- If record is invoiced with the Invoices plugin.
We consider such records finalized and prohibit edits. If a record must be edited, remove a condition that locks it.
Enabling Locking Plugin
To enable locking, check the Locking
box in the Plugins page and click Save.
Enable the Locking plugin on the Plugins page
Configuring Records Locking
Click on the Configure
link to the right of the Locking
plugin checkbox on the Plugins page. The page that appears allows you to configure how locking works. On it, simply define your cron schedule
Configuring locking schedule in Time Tracker
Locking Configuration Examples
Monthly on the 1st at 8:15
15 8 1 * *
When the server time reaches 8:15 on the 1st day of any month, regular users will not be able to enter or modify any records for dates earlier than the first of this month.
Weekly on Mondays at 10:00
0 10 * * 1
When the server time reaches 10:00 on a Monday, regular users will not be able to enter or modify any records for dates earlier than Monday.
Unfortunately, cron format does not allow to specify every other week
cut-off schedule. Use either monthly or weekly locking instead. If you really need a biweekly schedule, you have to customize Time Tracker, perhaps via a customization
Date Range Is Locked Error
When users try to enter or modify records in a locked date interval, they see a Date range is locked
error. Locking is not applied to users who have the "override_date_lock"
right (Supervisor and higher roles).
Time Tracker User Guide
Date range is locked error in Time Tracker