Work Detail Rounding Rule

Class Name

com.workbrain.app.ta.quickrules.WkrdRounding

Overview

The application can track time to the minute, which for some employers is more accuracy than needed. Often, time is represented in decimal format so any degree of accuracy beyond 1/10th of an hour (6 minutes) is undesired. To this end, they may elect to round time to every six minutes.

Parameters

Parameter Description
Multiple For Start The round multiple to be used for the first record in the Work_Details on a given day. Defaults to 6 minutes.

If Multiple For Start equals Split For Start, then always round up to the next multiple.

Split For Start The split for the first record. All time worked up to, including the split, will be rounded down, while the remainder will be rounded up. Defaults to 3 minutes.

If Split For Start equals to 0, then always round down to the previous multiple.

Time Code For Start Rounding The time code to be used to round the records at the start of the shift. Defaults to RND. If two codes are defined in a comma-delimited list, the first code is used when the work detail is rounded down, and the second code is used when the work detail is rounded up. If no codes are supplied, the work detail record is reset to the rounded time.

For example, with a Multiple For Start value of 15, a Split For Start value of 7, and a Time Code For Start Rounding value of RNDD, RNDU, these results would occur:

07:06 - 17:00 WRK becomes:

  • 07:00 - 07:06 RNDD
  • 07:06 - 17:00 WRK

07:08 - 17:00 WRK becomes:

  • 07:08 - 07:15 RNDU
  • 07:15 - 17:00 WRK
Multiple For Middle The round multiple to be used for all records other than the first or last records (in-shift) in the Work_Details on a given day. Defaults to 6 minutes.
Split For Middle The split for the in-shift records. All time worked up to and including the split will be rounded down, while the remainder will be rounded up. Defaults to 3 minutes.
Time Code For Middle Rounding The time code to be used to round the records in the middle of the shift. Defaults to RND.
Multiple For End The round multiple to be used for the last record in the Work_Details on a given day. Defaults to 6 minutes.
Split For End The split for the last record. All time worked up to and including the split will be rounded down, while the remainder will be rounded up. Defaults to 3 minutes.
Time Code For End Rounding The time code to be used to round the records at the end of the shift. Defaults to RND. If two codes are defined in a comma-delimited list, the first code is used when the work detail is rounded down, and the second code is used when the work detail is rounded up. If no codes are supplied, the work detail record is reset to the rounded time.

For example, with a Multiple For End value of 15, a Split For End value of 7, and a Time Code For End Rounding value of RNDD, RNDU, these results would occur:

07:00 - 16:50 WRK becomes:

  • 07:00 - 16:45 WRK
  • 16:45 - 16:50 RNDD

07:00 - 16:55 WRK becomes:

  • 07:00 - 16:55 WRK
  • 16:55 - 17:00 RNDU
Eligible Time Codes The list of time codes that are eligible for being rounded. Defaults to WRK, UAT.
Eligible Hour Types The list of hour type that are eligible for being rounded. Defaults to null (all hour types).
Based On Schedule When selected, instructs the application to round normalized to the scheduled start time and not midnight. This option is important when the shifts do not start at the even hour and the rounding multiple does not naturally fall on the scheduled start time. This option causes the start and middle rounding to be done based on schedule start time and the end rounding to be done based on schedule end time.
Apply To All Shifts During a Day Determines whether rounding will be applied to all shifts for the work date. The default is false (the check box is deselected).
Duration Based Determines whether rounding will be applied based on duration. Time-based rounding rounds both start and end times of work details. Duration-based rounding rounds the end times of work details based on start times so that durations fit the given multiple and splits.
Note: Often, using clock rounding is better because the records stay “clean”. Work detail record rounding is provided to satisfy further requirements. We recommend that clock rounding be used wherever possible.