When does the clock start for the timesheet recall period?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
We have a 15-day timesheet recall policy. But I am not sure when the clock starts for that?
For eg - If a resource submits a month-old timesheet which is approved by the Manager. After a day or 2 the Manager realizes there is an error and needs to recall the timesheet. Can the Manager recall a month-old timesheet that they approved just 2 days ago?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @AlpaS ,
The recall clock starts from the timesheet’s week start date, not from submission or approval.
The logic lives in the TimeSheet script include, in the checkValidRecallPeriod() method. It takes week_starts_on from the time sheet, adds 7 days for the week itself, then adds the Recall period allowed (days) value from the applicable time sheet policy. If that expiry date is after today’s date, recall is allowed. Otherwise it returns the message about having crossed the recall period.
So the formula is:
Recall expires on = week start + 7 + recall period
So, can the Manager recall a month-old timesheet they approved just 2 days ago?
It depends on the week the timesheet covers, not on when it was approved. Recall is available only while the expiry date calculated above is still ahead of today. If the timesheet’s week start is far enough back that the expiry has passed, the window has already closed, regardless of how recently it was approved.
Hope this helps. Please mark as helpful and accept as solution if it answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @AlpaS
My understanding based on the time sheet script is following:
Recall period is the X days count from the end of the time sheet week that you want to recall.
The Recall period allowed (days) value on the Time sheet policy is not counted from the date the time sheet or time card was submitted, approved or processed but It is counted from the end of the time sheet week.
The logic is in the script include 'TimeSheet', function 'checkValidRecallPeriod(). '
It sets the recall expiry date to:
week_starts_on + 7 + recall_period_allowed
In practice, a time sheet can be recalled up to and including X days after the last day of its week.
Example: for a week starting Sunday 1 Nov with a recall period of 30 days, recall is possible until 7 Dec. From 8 Dec it is blocked.
Hope it helps,
A.