CalculatePayandHours

Calculate Pay and Hours

Major Business Rule

Object Name: N0800056

Parent DLL: CHRM

Location: Client/Server

Language: NER

Functional Description
This NER is used to return the Salary and Hours Worked based on the Salary Default Source for a specified Pay Grade and Step  using a server. 

DATA STRUCTURE

Data Item Data Structure Description I/ORequiredTableNotes

SDSF cSalaryDefaultSourceI/O

SALYcPayTypeHSPI/O

UNszUnionCodeI/O

PGRDszPayGradeI/O

PGRSszPayGradeStepI/O

MATH06mnN080005FlagI/O

SALmnWorkSalaryI/O

IHmnWorkHoursI/O

FTEmnFullTimeEquivalentsI/O

EFTSjdDateFromI/O

IHmnDerrivedHoursI/O

SLOCszSalaryDataLocalityI/O




If  BF cSalaryDefaultSource is = '4'

Call Pay Grade Server

Pass the following Parms:

BF szPayGrade

BF szSalaryDataLocality

BF cPayTypeHSP

BF jdDateFrom

BF szPayGradeStep
BF  szUnionCode


Returning the following Parms:
BF mnN080005Flag (error)

VA evt_mnMinSalary

VA evt_mnMidSalary

VA evt_mnMaxSalary

VA evt_mnPayGradeStepRate

VA evt_mnHoursWorkedPerYear

Else

Call Pay Grade Server

Pass the following Parms:

BF szPayGrade

BF szSalaryDataLocality

BF cPayTypeHSP

BF jdDateFrom

BF szPayGradeStep
BF  szUnionCode


Returning the following Parms:
BF mnN080005Flag (error)

VA evt_mnMinSalary

VA evt_mnMidSalary

VA evt_mnMaxSalary

VA evt_mnPayGradeStepRate

VA evt_mnHoursWorkedPerYear

End

If there is no error returned (BF mnN080005Flag = 0)

If the BF cSalaryDefaultSource is equal to '1'

VA evt_mnCalcSalary is = to the VA evt_mnMinSalary

Else

If the BF cSalaryDefaultSource is equal to '2'

VA evt_mnCalcSalary is = to the VA evt_mnMidSalary
Else

If the BF cSalaryDefaultSource is equal to '3'

VA evt_mnCalcSalary is = to the VA evt_mnMaxSalary

Else

If the BF cSalaryDefaultSource  is equal to '4'

If the VA evt_mnHoursPerYear retrieve from Pay Grade Server is 0

VA evt_mnHoursPerYear is equal to BF mnDerrivedHours

BF mnWorkHours = BF DerrivedHours

Else

BF mnWorkHours = VA evt_mnHoursPerYear

End

If the Bf PayTypeHSP is equal to 'H'

BF mnWorkSalary is =

VA evt_mnPayGradeStepRate * VA evt_mnHoursPerYear

Else

BF mn WorkSalary is = VA evt_mnPayGradeStepRate

End

Else

Bf mnWorkHours is = BF mnDerrivedHours

End

End

End

End

End


Data Structure

DN0800056 - Calculate Pay and Hours

Parameter NameData ItemData TypeReq/OptI/O/Both
cSalaryDefaultSourceSDFScharNONENONE

This field specifies the salary/rate default source for creating new positions or defining vacancies when the Create Next Year's Position 
program (P081820) is run. Allowed values are:    blank None    1       Pay Grade Minimum    2       Pay Grade Midpoint    3       Pay Grade Maximum    4  
     Pay Grade Step Amount When the pay grade step is the source, that table's calculated hours/year (hours per day times days per  year) 
will be used as the default standard hours per year.  If this data does not exist in the table, the normal defaults will be used to  determine the 
standard hours per year basis:     o Home Company Standard Hours Per Year     o Default Company Standard Hours Per Year     o Data 
Dictionary     o 2080 

cPayTypeHSPSALYcharNONENONE

A code that specifies how an employee is paid. Valid codes are: H Hourly S Salaried P Piecework

szUnionCodeUNcharNONENONE

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

szPayGradePGRDcharNONENONE

A code that designates a category for grouping employees according to pay ranges. For each pay grade, you enter a pay range that 
includes a minimum, a midpoint, and a maximum pay rate. The system uses these pay ranges to calculate compa-ratios for the employees that 
you assign to pay grades. After you enter a pay grade for an employee, the system displays either an error or a warning message if you enter 
a rate for the employee that is not within the pay range for the employee's pay grade. To set up pay grades, use Pay Grades by Class 
(P082001). If you have set up your system to use rates in the Pay Grade Step table as the default pay rates for employees, changing an 
employee's pay grade step causes the system to automatically update the following fields:   o  Salary   o  Hourly Rate   o  Hours per day   o  Hours per 
year   o  Days per year  

szPayGradeStepPGRScharNONENONE

A code that identifies a pay grade and pay step. You can use this code to determine an employee's pay rate. If you have set up your 
system to use rates in the Pay Grade Step table as the default pay rates for employees, changing an employee's pay grade step causes the 
system to automatically update the following fields:     o Salary     o Hourly Rate     o Hours per day     o Hours per year     o Days per year 

mnN080005FlagMATH06MATH_NUMERICNONENONE

Event point for Math Numeric.

mnWorkSalarySALMATH_NUMERICNONENONE

The amount that an employee is paid in one year, assuming that the employee is paid every pay period of the year. For WorldSoftware: For 
the employee's primary job, the system stores the annual salary in the Employee Master Information table (F060116) and the Employee 
Jobs table (F060118). For secondary jobs, the system stores the annual salary only in the Employee Jobs table (F060118). Depending on how 
the value that is entered in the Display Salary (Annual/Effective) field in the HR History Constants table (F08040), this field displays one of the 
following:   o  Annual salary. For salaried employees who are not linked with a contract calendar, the user enters the amount or the system 
retrieves the amount from the Pay Grade/Salary Range Table (F082001). For employees who are linked with a contract calendar, the system 
calculates this amount using the following formula: (((current salary minus salary paid before change) divided by number of periods to pay) 
multiplied by pay frequency).   o  Effective salary. For employees whose jobs are linked with a contract calendar, the system recalculates the 
effective salary when you enter a mid-calendar salary adjustment. After you enter a mid-calendar adjustment, the effective salary equals the 
salary that is paid to the employee from the time of the adjustment through the end of the contract. The system calculates this amount using 
the following formula: ((annual salary divided by pay frequency) times periods to pay). 

mnWorkHoursIHMATH_NUMERICNONENONE

The number of work hours in the year. When you do not set your payroll company constants to use the Pay Grade Step table as the 
pay-rate source, the system uses this number to compute the hourly rate when you supply the annual salary (or to compute the annual salary when 
you supply the hourly rate). When you set your constants to use the Pay Grade Step table as the pay rate source, the system uses the 
following sequence to search for the standard number of hours that it uses to calculate the salary or hourly rate per pay period:     o Employee entry 
forms (this field)     o Pay Grade Step table (hours per day multiplied by days per year)     o Payroll company constants for the employee's 
company     o Payroll company constants for the default company (company 00000)     o Data dictionary     o System default value of 2080 
standard hours per year

mnFullTimeEquivalentsFTEMATH_NUMERICNONENONE

The full-time equivalent (FTE) amount. This figure is the portion of a full-time worker that an employee represents within the business unit. 
For example, an employee who works 20 hours per week would represent .50 (1/2 FTE). This number cannot be greater than 1 for any 
employee.

jdDateFromEFTSJDEDATENONENONE

The date on which a requisition, a position, or activity within a position takes effect.

mnDerrivedHoursIHMATH_NUMERICNONENONE

The number of work hours in the year. When you do not set your payroll company constants to use the Pay Grade Step table as the 
pay-rate source, the system uses this number to compute the hourly rate when you supply the annual salary (or to compute the annual salary when 
you supply the hourly rate). When you set your constants to use the Pay Grade Step table as the pay rate source, the system uses the 
following sequence to search for the standard number of hours that it uses to calculate the salary or hourly rate per pay period:     o Employee entry 
forms (this field)     o Pay Grade Step table (hours per day multiplied by days per year)     o Payroll company constants for the employee's 
company     o Payroll company constants for the default company (company 00000)     o Data dictionary     o System default value of 2080 
standard hours per year

szSalaryDataLocalitySLOCcharNONENONE

A user defined code (07/SL) that defines the different salary localities within an organization.  For example, you can compare salaries for 
employees on the East Coast with employees in the Midwest.

Related Functions

None

Related Tables

None