Maximum Work and Absence Hours Claimed Per Day Policy template
Use this template to create a business rule that determines if work and absence hours reported per day may be more than the standard daily work hours.
Class name =
largesoft.br.rules.system.TSMaxTotalHoursPerDay
This business rule iterates over existing line items to compute a total and then checks whether the current line item pushes the total over some max value. Run this business rules during submission so that the violation is against the document rather than a single line item.
Parameters
This template has these parameters:
- Line Item Type
- Select the line item type.
- Total Hours
- Select the operator for determining the allowable number of hours
entered, for example, < (less than),
<= (less than or equal to), and so
on. Specify the number of hours in the second field.
If set to “<= 8”, anything over 8 hours for a day will trigger this business rule to fire.
Example 1: Maximum work and absence hours claimed per day policy
You can create a business rule that prohibits employees from creating a timesheet that reports more than a predetermined number of work or absence hours on a timesheet. This example shows the possible values for this business rule.
Maximum work and absence hours claimed per day policy fields
This table shows the values for fields:
Field | Value |
---|---|
Name | Maximum Work and Absence Hours Claimed per Day Policy |
Severity | Invalid |
Notification | Interactive |
Fire on Itemization | Left blank |
Fire Scope | Left blank |
Offline and Online Firing Options | Fire Offline and Online |
Status | Active |
Fire On | Update TS Timesheet Line Item |
Maximum work and absence hours claimed per day policy strings
This table shows the values for strings:
Strings | Value |
---|---|
Description | Determines if work and absence hours reported per day may be more than standard daily work hours. |
Interactive Message | You are claiming a daily total of hours work and absence hours that exceed your standard daily work hours. |
Policy | Total daily hours claimed for work and absence cannot exceed standard daily work hours. |
Report Message | Total daily hours claimed for work and absence cannot exceed standard daily work hours. |
Maximum work and absence hours claimed per day policy parameters
This table shows the values for parameters:
Parameter | Value |
---|---|
Line Item Type | Timesheet Line Item |
Total Hours | = 9 |
Maximum work and absence hours claimed per day policy applications
This table shows the values for applications:
Name | Organization/Group |
---|---|
International Motors Company | Organization |
Example 2: Maximum work and absence project hours claimed per day policy
You can create a business rule that prohibits employees from creating a timesheet that reports more than a predetermined number of work or absence hours to a project. This example shows the possible values for this business rule.
Maximum work and absence project hours claimed per day policy fields
This table shows the values for fields:
Field | Value |
---|---|
Rule Name | Maximum Work and Absence Project Hours Claimed per Day Policy |
Severity | Invalid |
Notification | Interactive |
Fire on Itemization | Left blank |
Fire Once Per Session | Left blank |
Offline and Online Firing Options | Fire Offline and Online |
Status | Active |
Fire On | Update TS Standard Line Item |
Maximum work and absence project hours claimed per day policy strings
This table shows the values for strings:
Strings | Value |
---|---|
Description | Determines if work and absence hours reported per day may be more than standard daily work hours. |
Interactive Message | You are claiming a daily total of work hours and absence hours that exceed your standard daily work hours. |
Policy | Total daily hours claimed for work and absence cannot exceed standard daily work hours. |
Report Message | Total daily hours claimed for work and absence cannot exceed standard daily work hours. |
Maximum work and absence project hours claimed per day policy parameters
This table shows the values for parameters:
Parameter | Value |
---|---|
Line Item Type | Project Line Item |
Total Hours | = 9 |
Maximum work and absence project hours claimed per day policy applications
This table shows the values for applications:
Name | Organization/Group |
---|---|
International Motors Company | Organization |