WFM_TSR_SUBMIT_OR_SAVE_ON_NUMBER_OF_DEVICE_EVENTS_AP Fast Formula
This fast formula is associated with the delivered rule template Number of Time Entries Template. It compares the imported Out device events that match the conditions of the specified time category with the minimum entries defined for the Submit action.
If the number of reported Out events is the minimum or more, the formula submits the time card. Otherwise, it compares the Out events with the minimum entries defined for the Save action. If the number of Out events is the minimum or more, it saves the time card. If neither condition is met, the formula sets the time card status to Entered. This template uses an array processing formula.
Parameters
Name | Data Type | Description |
---|---|---|
WORKED_TIME_CONDITION | Time category | Time category that identifies the reported time entries to use to determine whether to save or submit the time card. |
MIN_ENTRY_SUBMIT | Fixed number | Minimum reported Out events required to automatically submit the time card. |
MIN_ENTRY_SAVE | Fixed number | Minimum reported Out events required to automatically save the time card. |
Output
Name | Message Severity |
---|---|
OUT_MSG | Time card action automatically started |
Example
Your people clock out and in when taking their breaks (2 per work day), and meal. They also clock out just before leaving for the day, for a total of 4 clock outs in a standard work day. The time card period is weekly. You create a rule with this formula that automatically completes the appropriate action:
- If the total reported Out events are 35 hours or more, submit the time card.
- Else, if the total reported Out events are 7 hours or more, save the time card.
- Else, set the time card status to Entered.
Device Event | Payroll Time Type | Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
---|---|---|---|---|---|---|
In | Regular | 8:00a | 8:00a | 8:00a | 8:00a | 8:00a |
Out and In | Break | 10:00a | 10:00a | 10:00a | 10:00a | 10:00a |
Out and In | Regular | 10:15a | 10:15a | 10:15a | 10:15a | 10:15a |
Out and In | Lunch | 12:00p | 12:00p | 12:00p | 12:00p | 12:00p |
Out and In | Regular | 1:00p | 1:00p | 1:00p | 1:00p | 1:00p |
Out and In | Break | 3:00p | 3:00p | 3:00p | 3:00p | 3:00p |
Out and In | Regular | 3:15p | 3:15p | 3:15p | 3:15p | 3:15p |
Out | Regular | 5:00p | 5:00p | 5:00p | 5:00p | 5:00p |
Output | Save time card | Save time card | Save time card | Save time card | Submit time card |