ValidateVOE_PayTypeEffDates

Validate VOE Pay Type Effective Dates

Minor Business Rule

Object Name: N0500057

Parent DLL: CFND

Location: Client/Server

Language: NER

Named ER N0500057, Validate Verification Of Employment (VOE) Pay Type Effective Dates

Functional Description



Purpose


Verify that added or changed records d not have dates that may overlap with existing records. This 

includes records with different Pay Type Categories.


Setup Notes and Prerequisites


Data in F05002, Pay Type by Category, needs to be setup (new OneWorld file, F. Thamir, 13 August, 

1998)


VOECATE, VOE Category, UDC 05/V1


Special Logic



Technical Specification


Parameters


DATA ITEMDescriptionI/ORequiredNotes


VOECATEVOE CategoryIx


PDBAPay Type CodeIx


EFFFROMDate, effective fromIx


EFFTHRUDate effective thruIx


MATH06Error code returnedOx0 = no errors

1 = VOECATE not entered

2 = Date From not entered

3 = Date Thru > Date From

4 = a record in F05002 does not have a 

"Date From"

5 = dates overlap an existing record in 

F05002



Processing


1. Verify input parameters:

VOECATE not equal to null

Date From > 0

Date Thru > Date From (a blank thru date is considered open)


2. For date coparison purposes, open thru dates are considered 10 years in the future (from day 

program is run)


3. F05002.Select (PDBA = pay Type Code)


4. while not end-of-file (F05002) and no errors

F05002.FetchNext (VOECATE, Date From, Date Thru)

if VOECATE/F05002 = input VOECATE, and Date From/F05002 = input Date From

then

do not compare record

else

if input Date From < Date From/F05002

then

if Date Thru >= Date From/F05002, then error code = 5

else

if inpt Date From <= Date Thru/F05002, then error code = 5

endif

endif

   endwhile


5. Copy error code to data structure


^

Data Structure

D0500057 - Validate VOE Pay Type Effective Dates

Parameter NameData ItemData TypeReq/OptI/O/Both
szVOECategoryVOECATEcharREQINPUT

This field is used to categorize pay types, such as those for base, overtime, commission, bonus, and other pay.

mnPayTypeCodePDBAMATH_NUMERICREQINPUT

A code that defines the type of pay, deduction, benefit, or accrual. Pay types are numbered from 1 to 999. Deductions and benefits are 
numbered from 1000 to 9999.

jdDateEffectiveFromEFFFROMJDEDATEREQINPUT

The calendar date on which a function, process, pay type, deduction, benefit, or accrual begins. When you enter the date, you must use the 
date format DD/MM/YYY.

jdDateEffectiveThruEFFTHRUJDEDATEREQINPUT

The calendar date on which a function, process, pay type, deduction, benefit, or accrual ends. When you enter the date, use the date format 
DD/MM/YYYY. For ongoing pay types, deductions, benefits, and accruals, leave this field blank. 

mnErrorCodeReturnedMATH06MATH_NUMERICREQOUTPUT

Event point for Math Numeric.

Related Functions

None

Related Tables

None