Use Different Rules for Different Shifts
Shift types let you use different daily rules within one Smart Formula. For example, you can apply one ordinary rate to Day shifts and another to Night shifts. You define shift types on each formula to determine how timesheet lines get their type. You can supply shift names in your data, set up automatic selection using start-time windows, or use a default for every line. You can also combine these options. UpSheets selects a type in this order:- Supplied shift name: Supply Shift type in your data, or select a type in the upload editor. A supplied name takes priority over the start-time windows and default. It must match a type defined on the employee’s formula; an unknown name reports an error rather than falling back.
- Start-time window: If the shift name is blank, UpSheets checks the line’s start time against each type’s optional Start from and Start to window. The first matching type is used.
- Default shift type: If no window matches, no windows are set, or the line has no start time, UpSheets uses the type marked Default on the formula.
Enable Shift Types
- Select Smart Formulas > Configure.
- Open Settings.
- Set Enable shift types to Enabled.
Set Up a Formula
Open an editable Smart Formula draft from Smart Formulas > Configure. In the Shift Types summary, select Edit.- Select Add shift type and enter a name, such as Day or Night.
- Optionally enter Start from and Start to.
- Use Set default to choose the fallback type. The selected type shows a Default badge.
- Select Save.
Filter Rules by Shift Type
On the formula editor, the Shift Types row filters the Rules table. Unset, Day, Night, and any other configured types appear as toggle buttons. All options start selected, so every rule is visible until you change the selection.- Unset includes rules with no shift limit in the rule editor (they apply to every shift type).
- Each shift type includes rules limited to that type. A rule limited to more than one type stays visible when any of those types is selected.
- Leave Unset and Night selected.
- Deselect every other shift type.
- Deselect Unset and every other shift type.
- Leave only Night selected.
Choose Which Rules Apply
In the formula editor, open a rule or select Add rule. The Shift Types dropdown appears after Priority when shift types are enabled, the formula has types, and the rule supports them.- Select one or more types to limit that rule to those shifts.
- Leave the selection empty to show All and apply the rule to every shift type.
- Clear the selection to return to All.
Optional Start Times
Use shift times when you want UpSheets to choose the shift type automatically, without supplying a shift name on every timesheet line. This is useful when your data has start and end times but no shift names. Start from and Start to define the range of start times that identifies that shift type. For example, give Night a window of 18:00–06:00. A line starting at 20:00 is then treated as Night, so rules limited to Night can apply. A line starting at 09:00 does not match that window and uses another matching type or the default. These fields classify the whole shift by when it starts. They do not set the shift’s duration, restrict its paid hours, or change its type when the clock passes the window boundary. A Night shift starting at 20:00 and ending at 08:00 remains Night for the whole shift, even though it ends after 06:00. Use each rule’s time or hour range to control which hours it pays. Enter both times or leave both blank. A window can cross midnight: Start from 18:00, Start to 06:00 can identify a Night shift that starts in the evening or early morning. If windows overlap, the first matching type in the list is used. Use separate windows to keep selection clear. Both window boundaries are included. If the two times are identical, the window matches any start time. Start times are optional. Leave both blank if you supply shift names in your data or want to use the default. An explicitly supplied shift name takes precedence over the start-time windows.How a Timesheet Gets Its Shift Type
UpSheets checks each line in this order:- Shift type supplied: Use the named type configured on the employee’s Smart Formula. Names are matched without regard to capitalisation, so
nightmatches Night. - Start time matches a window: When the supplied type is blank, use the first matching start-time window.
- Default: When no window matches, or the line has no start time, use the formula’s default type.
Simple Examples
Day and Night Rates
Define Day as the default and Night with a start window from 18:00 to 06:00. Add daily ordinary rules for the required days and hours:
A line starting at 20:00, with no supplied shift name, selects Night. A line starting at 09:00 falls back to Day. A supplied value of Day overrides the Night start-time window.
A daily rule set to All, such as a shared daily overtime rule, remains eligible for both types when its other conditions match.
Supplying Shift Names in Your Data
Define Day and Night, leave their start windows blank, and make Day the default. SupplyDay or Night as the Shift type in your data.
A line containing Night uses Night rules. A blank line uses Day. A line containing an unconfigured name, such as Evening, reports an error so you can correct it before uploading.
