Example Line Rounding Rule for Lunch Breaks

Skip to main content

Example Line Rounding Rule for Lunch Breaks

You are here:

Shop Floor Insight can use Shop Floor Line Rounding Rules to ensure that a lunch break is recorded as at least 30 minutes when an employee returns early.

This example will walk through a scenario where you could round a short lunch break that is less than 30 minutes to always be up to 30 minutes, however any time exceeding that will be recorded as-is.

For example, you can configure Shop Floor Insight so that:

  • A 20-minute lunch break is recorded as 30 minutes.
  • A 29-minute lunch break is recorded as 30 minutes.
  • A 30-minute lunch break remains 30 minutes.
  • A 31-minute lunch break remains 31 minutes.
  • A 45-minute lunch break remains 45 minutes.

This is accomplished by creating a line rounding rule that applies only to the lunch activity when its recorded run time is 30 minutes or less.

Before You Begin

This example assumes that lunch is recorded using a specific Shop Floor Insight activity code, such as LUNCH, the example in this tutorial will use a Shop Floor activity code of “287” with the activity caption of “Break – Lunch”.

The exact activity code may be different in your environment.

The employees affected by the rule must also use the applicable Shift Pattern, because Shop Floor Line Rounding Rules are assigned by shift pattern.

Configure the Lunch Rounding Rule

1. Navigate to the Shop Floor Shift, then open the Shop Floor Line Rounding Rules

In Business Central:

  1. Select the Search icon.
  2. Search for Shop Floor Shift Pattern List
  3. Choose the shift and choose Line Rounding Rules.
  4. (Alternatively search for “Shop Floor Line Rounding Rules”)

2. Create a New Rounding Rule

Select New to create a line rounding rule.

Select the Shift Pattern used by the employees whose lunch breaks should be rounded.

If employees use different shift patterns, create the appropriate rule for each applicable shift pattern.

3. Set the Rule Type to Run Time

Set Type to:

Run Time

Lunch duration is normally represented by the run time of the lunch activity’s time card line.

4. Filter the Rule to the Lunch Activity

Use the Filter field to restrict the rule to the lunch activity.

For example, if the lunch activity code is LUNCH, include:

Activity Code = LUNCH

For example, if the lunch activity code is 287 ( Break-Lunch), include:

Activity Code = 287

This prevents the rounding rule from affecting production, setup, break, or other time card lines.

5. Limit the Rule to Lunches of 30 Minutes or Less

Add a condition to the filter so that the rule only applies when Run Time is 30 minutes or less.

The value used in this filter depends on the Time Entry Unit of Measure used by the time card line.

For example:

Time Entry Unit of Measure 30 Minutes
Hours 0.5
Minutes 30

If time is recorded in hours, the Run Time portion of the filter would therefore be: Run Time = 0..0.5

If time is recorded in minutes: Run Time = 0..30

The completed filter should restrict the rule to both the lunch activity and a duration of no more than 30 minutes.

6. Configure the Rounding

Set:

  • Round Time Configuration: Always Up
  • Round To Nearest: 30 minutes
  • On Match: Stop Processing

You can also enter a descriptive Comment, such as:

Round lunch breaks shorter than 30 minutes to 30 minutes

Using Always Up means a qualifying lunch duration is rounded upward to the next 30-minute increment.

Because the filter only permits values up to 30 minutes, lunch breaks longer than 30 minutes do not match this rule and are therefore not rounded by it.

The resulting rule would have a filter similar to:

WHERE( Activity Code=FILTER(287), Run Time=FILTER(0..0.5))

Shift Pattern Run Order Type Round Time Configuration Round To Nearest Comment On Match Filter Minimum Maximum
MF8 1 Run Time Always Up 30 minutes Stop Processing WHERE( Activity Code=FILTER(287), Run Time=FILTER(0..0.5))

7. Test the Rule

Test the configuration with an employee assigned to the applicable shift pattern.

Recommended test cases are:

Actual Lunch Expected Result
15 minutes 30 minutes
20 minutes 30 minutes
29 minutes 30 minutes
30 minutes 30 minutes
31 minutes 31 minutes
45 minutes 45 minutes

Also verify that non-lunch activities are unaffected.

Important Considerations

The Filter is important. Configuring only Always Up and Round To Nearest = 30 minutes without limiting the duration could cause longer lunch entries to also be rounded.

For example, without the 30-minute limit, a 31-minute entry could be rounded up to 60 minutes.

The activity filter is also important because line rounding rules can otherwise apply to other time card lines for employees using the same shift pattern.

If other line rounding rules already exist for the same shift pattern and type, review their Run Order and On Match settings. Multiple matching rules can be processed in sequence.

Related Articles

How to automatically round time card line entries
https://kb.dmsiworks.com/knowledge-base/how-to-automatically-round-time-card-line-entries/

Time Card Line Rounding for Shift Breaks
https://kb.dmsiworks.com/knowledge-base/time-card-line-rounding-for-shift-breaks/

Line Rounding of First Time Card Line
https://kb.dmsiworks.com/knowledge-base/line-rounding-of-first-time-card-line/

Time Card Line Rounding for Job Tasks
https://kb.dmsiworks.com/knowledge-base/time-card-line-rounding-for-job-tasks/

Was this article helpful?
5 out Of 5 Stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?

Leave A Comment

Table of Contents
Go to Top