Overview
Timesheets can now fill themselves from a worker's approved dockets, so crews don't enter the same hours twice. An admin sets up a mapping once in Catalogues, then anyone filling a timesheet clicks Prefill from Dockets.
What it does:
- Matches any docket field to any timesheet field (date, start and end times, breaks, and so on).
- Fills up to 5 approved dockets for the same worker and day into separate shifts, in start-time order.
- Adds a link on the timesheet back to each docket it came from.
- Optionally, fills a date-and-time field from the Scheduler booking when a form is opened from the Scheduler.
This works on web and mobile.
Before you start
Check both templates have the fields the mapping will fill. The mapping can only copy into fields that already exist.
| Template | What it needs |
|---|---|
| Docket | The fields you want to copy, such as work date, start time, end time and break duration |
| Timesheet | A date field, which must be filled in before you prefill |
| Timesheet | Shift fields for each shift you want filled (Shift 1 start and end, Shift 2 start and end, up to Shift 5) |
| Timesheet | A Linked Docket field, which will hold the link back to each docket |
You also need admin access to Catalogues to create the mapping.
Add the Prefill button to the timesheet template
The timesheet template needs a button that runs the prefill. Without it, there is nothing to click.
- Open the timesheet template in the template builder.
- Add a Button field, for example labelled Prefill from Dockets.
- Set the button’s onchange to
=UpdateTimesheetFromDocketBasedOnDate() - Save the template.
Step 1: Create the docket-to-timesheet mapping
This is a one-off setup per docket and timesheet pair.
- In Prestartr web, go to Catalogues and open the docket-to-timesheet mapping (Integration Mappers).
- Create a new mapping.
- Select the source docket template and the destination timesheet template. A field grid loads for the two templates.
- Match each docket field to a timesheet field. For example:
- Work Date to the timesheet's date field
- Start Time to Shift Start
- End Time to Shift End
- Break duration to Lunch
- The docket itself to the Linked Docket field
- Save the mapping.
- Reopen the mapping to check your matches were saved.
Step 2: Fill a timesheet from dockets
- Open the worker's timesheet and fill in the date.
- Click Prefill from Dockets.
- Check the filled shifts, then save or submit as usual.
How the dockets are picked and placed:
- Only approved dockets for that worker on that date are used. Draft, pending and rejected dockets are skipped.
- Shifts fill in start-time order. For example, dockets for 06:00–10:00, 14:00–18:00 and 10:30–13:30 fill Shift 1, Shift 2 and Shift 3 as 06:00, 10:30 and 14:00.
- Up to 5 dockets a day. If there are more, the first 5 are filled and a message says the rest must be entered by hand.
- Overnight dockets (for example 22:00 to 06:00) are handled correctly. Prefill on the docket's work date.
- Each shift links to its docket. Click the docket number in the Linked Docket field to open the source docket.
Optional: Prefill a date and time from the Scheduler
A form opened from a Scheduler booking can fill one date-and-time field with the booking's date and start time.
- Open the form template in the Form Template editor.
- Select the date-and-time field and open its prefill settings.
- Turn on Prefill from Scheduler Allocation and choose Allocation Schedule (Merged Date + Time).
- Save the template.
When a worker opens this form from their allocation, the field shows the booking's date and start time, for example 16/07/2026 07:45 AM. If the booking has no start time, the field shows midnight (12:00 AM) on the booking date.
Troubleshooting
| Problem | What to check |
|---|---|
| Nothing fills when I click Prefill from Dockets | The timesheet's date is filled in, and the worker has approved dockets for that date |
| Only 5 shifts filled | The limit is 5 dockets a day. Enter any extra dockets by hand |
| A field stays empty | That field isn't matched in the mapping in Catalogues, or the timesheet template doesn't have it |
| The Scheduler date and time didn't fill | The form must be opened from the Scheduler allocation, and the field must have Prefill from Scheduler Allocation turned on |