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
^
D0500057 - Validate VOE Pay Type Effective Dates
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szVOECategory | VOECATE | char | REQ | INPUT |
This field is used to categorize pay types, such as those for base, overtime, commission, bonus, and other pay. | ||||
mnPayTypeCode | PDBA | MATH_NUMERIC | REQ | INPUT |
A code that defines the type of pay, deduction, benefit, or accrual.
Pay types are numbered from 1 to 999. Deductions and benefits are
| ||||
jdDateEffectiveFrom | EFFFROM | JDEDATE | REQ | INPUT |
The calendar date on which a function, process, pay type, deduction, benefit, or accrual begins. When you enter the date, you must use the
| ||||
jdDateEffectiveThru | EFFTHRU | JDEDATE | REQ | INPUT |
The calendar date on which a function, process, pay type, deduction, benefit, or accrual ends. When you enter the date, use the date format
| ||||
mnErrorCodeReturned | MATH06 | MATH_NUMERIC | REQ | OUTPUT |
Event point for Math Numeric. |
None |
None |