GetOccupRates

Retrieve Occupational Rates

Minor Business Rule

Object Name: N0500016

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description
The purpose of this Named ER is to retrieve the occupational rates.

Setup Notes




Technical Specifications


Parameters


Data Item Data Structure DescriptionI/ORequired  TableNotes
AN8Employee NumberI

MCUOCharge Out Cost CenterI

UNUnionI

JBCDJob CodeI

JBSTJob StepI

DWKWork DateI

SEC$Security FlagOThis flag will change to U if the retrieval is 

successful

BHRTBase rateO

PBRTBilling RateO

PPRTPiece RateONot used until B73.2

RCCDRecord TypeI



Related Tables 


Table Table Description
F060146Occupational Rates Table


Processing



Use the following hierarchy to search the x-ref (F060146) file.  


Keys for F060146AN8 

MCU 
UN   

JBCD  

JBST

DWK

Load the key as shown:

1st Fetch:AN8

MCU

UN

JBCD

JBST

DWK


If Unsuccessful,

2nd Fetch:AN8

MCU

UN

JBCD

blank

DWK


If Unsuccessful,

3rd Fetch:AN8

MCU

UN

blank

blank

 DWK


If Unsuccessful,

4th Fetch:AN8

MCU

blank

JBCD

JBST

DWK

If Unsuccessful,

5th FetchAN8

MCU 

blank

JBCD

blank

DWK


If Unsuccessful,

6th FetchAN8

MCU

blank

blank

blank

DWK


If Unsuccessful,

7th FetchAN8

blank

UN

JBCD

JBST

DWK

If Unsuccessful,

8th FetchAN8

blank

UN

JBCD

Blank

DWK

If Unsuccessful,

9th FetchAN8

blank

UN

blank

blank

DWK


If Unsuccessful,

10th FetchAN8

blank

blank

JBCD

JBST

DWK

If Unsuccessful,

11th FetchAN8

blank

blank

JBCD

Blank

DWK

If Unsuccessful,

12th FetchAN8

blank

blank

blank

Blank

DWK





The date worked is used to find the first record that matched the first five keys and the date is greater than the effective ending date.  If the first 

five keys match and the date worked is greater than or equal to the beginning date (EFTB) and less than or equal to the ending date (EFTE), then the 

correct record has been retrieved and $OCC will be set to a 1.  If unsuccessful, $OCC will be set to blanks.



IF JIAN8 = AN8

    AND JIMCU = MCUO

AND JIUN = UN

AND JIJBCD = JBCD

AND JIJBST = JBST

AND DWK >= JIEFTB

AND DWK <= JIEFTE

SET SEC$ = O


Set Parameters to return to the calling program.

If the record is payroll processing (RCCD = 1 or 2) always return the PHRT as the base rate.  

IF RCCD = 1
 OR RCCD = 2

SET PHRT = JIPHRT
END

Load billing rates for the recharge records (RCCD = 2 or 3).

IF RCCD = 2
OR RCCD = 3

SET PBRT = JIPBRT

END (end recharge logic (RCCD = 2 or 3))

ELSE
SET $SCC = blank
END (end processing successful read of table)

^

Data Structure

DN0500016 - Retrieve the Occupational Rates

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szCostCenterChargeoutMCUOcharNONENONE

A value that represents the location in which the employee worked. You can use this value to specify that an employee worked at this 
location but charged the time to a different business unit. This value is used for deriving rates from the Union Pay Rate table and is used 
exclusively by the Certified Payroll Register. A value in this field overrides the rates that are set up in the Union Rates table if the table is set up by job 
or business unit.

szUnionCodeUNcharNONENONE

A user defined code (06/UN) that represents the union or plan in which the employee or group of employees work or participate.

szJobCategoryJBCDcharNONENONE

A user defined code (07/G) that defines the jobs within your organization. You can associate pay and benefit information with a job type and 
apply that information to the employees who are linked to that job type.

szJobStepJBSTcharNONENONE

A user defined code (07/GS) that designates a specific level within a particular job type. The system uses this code in conjunction with job 
type to determine pay rates by job in the Pay Rates table.

jdDtWorkJulianDWKJDEDATENONENONE

The date used as the actual work date or pay-period ending date.

cSecurityFlagEV01charNONENONE

An option that specifies the type of processing for an event.

mnRtBaseHourlyBHRTMATH_NUMERICNONENONE

This is the employee's base hourly rate as retrieved from either the Employee Master or the Union Rates Table.  This number would not be 
modified by multipliers, differentials, etc. It is saved in the time entry file (F0611) for the express purpose of being able to account for 
premium pay separate from base pay.  (See also: HRT, PWRT, BRT) ***Important Note*** If you change the number of DATA DISPLAY DECIMAL 
digits for the field "PHRT", "SHRT" you MUST also change this field's data display decimals to be the same number.

mnRtDistributionOrBillPBRTMATH_NUMERICNONENONE

A number that specifies the rate that the system uses to bill for labor services. This rate is often referred to as the billing or recharge rate. 
The system charges the resulting amount, based on this rate, to the primary distribution account for the timecard. The system also enters an 
offset to an account that is derived from automatic accounting instructions. This rate does not affect employee payroll. To allow billing rates in 
time entry, the employee record type must be set to 2 (payroll and recharge processing) or 3 (recharge processing only) with the Employee 
Payroll program (P0801PRL).

mnRtPieceworkPPRTMATH_NUMERICNONENONE

The rate paid for the type of component (piece) produced.  If you enter a rate in this field, this rate overrides the rate in the Employee Master 
file.

cRechargeCodeRCCDcharNONENONE

A code that identifies whether the employee is to be handled through the Recharge processing option for the Payroll Journal Entry 
program. Valid codes are:    1   Payroll Processing Only    2   Payroll and Recharge Processing    3   Recharge Processing Only  After a timecard has 
been added, you cannot change its record type.

mnJobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

Related Functions

None

Related Tables

None