Hours Worked Function for Timecard Templates

The hours worked function for timecard templates is included in the Template Hours Worked Functions module (N1861312). This function uses data structure D186132. You also use this data structure when you create a custom hours worked function for timecard templates. This table illustrates input and output information about the data items in this data structure:

Data Item

Additional Information

LRSTTID

Input: Timecard Template ID

AN8

Input: Address Number (Employee Number)

PHRW

Output: Hours Worked

The predefined hours worked function for timecard templates is THWF_8HoursIf8OnPrevWorkDate.

The 8 Hours if Employee Worked 8 or More Hours on a Previous Day function returns eight hours worked if the employee worked eight or more hours, not including sick pay, on the previous work date. Saturdays and Sundays are not considered work dates. If the employee did not work at least eight hours, the returned value is zero. The work date is identified on the timecard template in the Work Date Schedule. For example, you might use this function if you want the timecard template to use eight hours for the amount of work an employee is paid each day, based on the criteria specified.