On the "General Config" page there's a section called "Sleepover Rules". This section contains settings which are applied to Sleepover bookings during the payroll process.
These settings do NOT apply to invoice exports. You can find details about how sleepovers are billed
here.
Legacy vs Modern payroll exports
CareVision supports two different methods for generating payroll.
The Legacy method is used for:
- Attache, accessible via the "Exports" page of the Management Portal
- Keypay, accessible via the "Payroll" page of the Management Portal
The Modern method is used for:
- Payroll Metrics, accessible via the "Payroll" page of the Management Portal
There are some differences in the way the Sleepover Rules are interpreted between these two methods.
Sleepover Rules
The 3 options of Sleepover Rules can be set up on the

page in

.
Option 1
When Option 1 is selected, the specified amount of recall time is added to each booking. This time is added regardless of whether any interruptions were recorded during the booking.
A payroll reference can also be specified, for details on how this is used see the Work Type section below. The payroll reference field only applies to Legacy formats, it's ignored by Modern formats.
Option 2
When Option 2 is selected, the system finds the longest gap between interruptions (the longest period of uninterrupted sleep). Everything outside of this gap will be paid as an interruption.
Option 3
Option 3 is not supported by Legacy formats. If Option 3 is selected, Legacy formats will apply the logic for Option 2 instead.
Option 3 will find Interruption Periods which have the minimum possible total duration while satisfying the following conditions:
- The generated Interruption Periods must completely cover all recorded Interruptions for the booking.
- Each generated Interruption Period must have a duration equal to or longer than 1 hour.
Work Type
Several of the Legacy formats include a "Work Type" code. In KeyPay this is called "Work Type External Id" and in Attache this is called "Cost Code".
When Option 1 is not selected, the value of Work Type is retrieved from the "Ref Two" field of the Time Category Rate that's applied to the booking.
When Option 1 is selected, the specified reference is used as the Work Type. If no reference is specified, the employees's Role Name is used instead.