Defining Default Business Hours
The Duration field value is required in the Time Entry records for limiting the working hours of the technicians when a certain activity falls outside the working hours. When the Working Hours are not specified for a Technician record, then Default Business Hours are configured in the Timesheet configuration.
|
Ensure to define the Business Hours field in the technician record always.
|
If the value Default Business Hours is not configured in the Timesheet configuration, then the default Business Hours of the organization is used.
These are used in combination with the Start Time and End Time field values for the Time Entry record. This will map the values from mapped source object fields such as Start Date and Time and End Date and Time fields in the Work Detail when one of the following conditions is set to true:
• If Time Entry’s Duration field is NOT mapped from a source object field, for instance, Line Qty in Work Detail
OR
• If the source object field (for instance, Line Qty in Work Detail) mapped to Time Entry’s Duration field is blank (null, not 0)
Example:
When the business hours are from 9 AM to 6 PM AND the Line Qty field is blank, Time Entry records are created as follows:
• When there is a work detail from 5 to 6:30 PM, a one-time entry is created for the period 5 to 6:30 PM, with the Duration set to 1 hour.
• When there is a work detail from 31/Aug/2016 11 AM to 01/Sep/2016 2 PM, a time entry is created for the period 31/Aug/2016 11 AM to 01/Sep/2016 2 PM.
• Its Duration will be set to 12 hours, which is the sum of 7 hours on the 31st from 11 AM to 6 PM and 5 hours on the 1st from 9 AM to 2 PM.
• When there is a work detail from 6 to 7 PM, the Duration of time entry created will be 0.
• When there is a work detail from 8 to 9 AM, the Duration of time entry created will be 0.
For any of the above scenarios, if the Line Qty is set to a value, then the Duration field is set to the same value when Time Entry records are created. If Line Qty is set to 1.5 for the Work Detail record from 5 to 6:30 PM (example #1 above), Duration will be set to 1.5 for the corresponding Time Entry record.
|
The duration field must be mapped only from a field that stores the value in hours.
|
Another application of business hours is in the calculation of time entry duration. If any break hours are defined for business hours, they are skipped when calculating the duration. For instance, if the default business hours are from 9 AM to 6 PM, with break hours (or holiday or leave) defined from 1 PM to 2 PM, for activity from 9 AM to 6 PM, the duration will be calculated as 8 hours and not 9 hours.
|
Business Hours are applied when creating time entries for events and tasks too.
|
Reference Topics