Timesheet statement generation
Opens a pending timesheet statement for each active employee whose current approval period is not yet covered.
How it works
When timesheet approval is turned on in employment terms, every employee on those terms should have one timesheet statement per approval period. This job opens the missing statement for the current period:
- Finds terms with approval — employment terms whose Approval Mode is not None
- Works out the current period — for each set of terms, the start and end of the approval period that contains the run date
- Selects employees — active employees on those terms who do not yet have a statement with exactly that start and end date
- Opens the period — one per employee. This creates the pending statement, or does nothing if a matching statement already exists
The exact start and end date matter: switching the approval period (e.g. monthly → weekly) leaves the old monthly statement in place but creates fresh weekly ones from the next run on.
When it runs
The job runs automatically and only triggers when at least one employee is missing a statement. It is also started straight away — at most one waiting run per workspace — whenever an employee is added, restored or deleted, an employment or its employment terms change (immediately or through a scheduled change), or Employment status refresh moves an employee across their start or end date. So a new or changed employment normally has its statement within seconds. In a workspace that is not live yet, or is deactivated, nothing is started early.
This job only ever opens the current period. Past periods opened by moving an employment start earlier are filled in when the employment is saved — see Statements and the employment start date.
Parameters
This job has no parameters. The run date controls which period is considered “current”.
Running with a past run date
You can create statements in advance, or for a past period, by triggering the job manually with a run date inside that period. A statement is never created twice, so re-runs are safe.
Job results
| Metric | Description |
|---|---|
created | Number of pending statements created |
errors | Number of employees for whom the statement could not be opened |
When no terms have approval enabled, the run reports skipped: "no employment terms with approval enabled".
Troubleshooting
| Issue | Solution |
|---|---|
| Statement not generated for an employee | Confirm the employee’s employment terms have an Approval Mode other than None and the employee is active |
| Statement created with the old period dates | The period’s start and end are taken from the terms at run time. If the terms changed mid-period, the next run generates a new statement for the new dates; the old one remains until reviewed |
| No statements created for a new approval mode | Saving the employment terms starts the job; check the job runs list for a failed run, and run the job manually if needed |
| No statements for past periods after backdating an employment | This job never creates past periods. They are filled in when the employment is saved, and only if no statement from the new start onward is submitted or approved — see Statements and the employment start date |