Maximum Number of Hours Charged Per Day Policy template

Use this template to create a business rule that limits the number of hours employees can charge in a day on standard line items.
Class name =
largesoft.br.rules.system.TSMaxHoursPerDay

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 rule during submisison so that the violation is against the document rather than a single line item.

Parameter

This template has this parameter:

Max Number of Hours Per Day
Specify the maximum number of hours that can be charged for each day in standard line items.

Example

This example shows the possible values for this business rule.

Maximum number of (standard) hours charged per day policy fields

This table shows the values for fields:

Field Value
Name Maximum Number of Hours Charged Per Day Policy
Severity Explanation
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 Standard Line Item

Maximum number of (standard) hours charged per day policy strings

This table shows the values for strings:

Strings Value
Description Determines if user bills too many hours to standard line items.
Interactive Message You may not charge more than 24 hours on any one day.
Policy An employee may not charge more than 24 hours on any one day.
Report Message Too many hours charged.

Maximum number of (standard) hours charged per day policy parameters

This table shows the values for parameters:

Parameter Value
Max Number of Hours Per Day 1.0

Maximum number of (standard) hours charged per day policy applications

This table shows the values for applications:

Name Organization/Group
TS: Data Group Group