GetLocalUnionCode

Get Local Union Code

Minor Business Rule

Object Name: N0500007

Parent DLL: CFND

Location: Client/Server

Language: NER


Functional Description

The purpose of this Named ER is to retrieve the local union code.

Setup Notes




Technical Specifications


Parameters


Data Item Data Structure Description I/ORequiredTableNotes
UN          Union Code                               I

UN * ??       Work Union Code (WKUN1)I

EV01           Error Flag (WKUN2)                                  Not sure if needed'85may use this                                                     

                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                     to determine call to                                          

                                                                                                                       this'85.cEditError in edit line after                                                                                               

                                                                  validating UN

MCU       Cost Center                           I

JBCD           Job Type                                I

MCUO       Recharge Cost Center              I

UNL                Local Union Code                                O

* not used now..not sure if needed.



Related Tables 


Table Table Description
F069306Union Local Cross Reference


Processing


UN in grid (keyed in or retrieved from F060116)  Validate this field first'85.Move value to WKUN1 and if valid, WKUN2 = blank
If no errors WKUN2 = blank) call this NER(and UN != blank) to check for local union.   IF there is a local union, move value to UN.  

WKUN1 will always be original UN value.  



1.Check for Local Union Code.

If a Local Union override agreement exists derive it now.  If the keyed Union was in error then do not derive the Local. The Local Union is used to 
derive rates but it is not used to derive accounting entries. The keyed Union or Union designation from the Employee Master is used to find pertinent 

accounting entries. If there are no errors move Local Union to the grid or if no Local Union exists move keyed or employee master Union to grid.


Only perform this edit if the keyed union was not in error (WKUN2, from step 13, is blank), and the grid column is blank.


To derive the local union, fetch from F069306 (Union Local Cross-Reference) using the following hierarchy:


Keys for F069306:MCU  Business Unit

UN     - Union Code

 JBCD  Job Type


1st fetch:MCUO

WKUN1 (see step 13)

JBCD


If not successful, 

2nd Fetch:MCUO

WKUN1

Blank


If not successful

3rd Fetch:MCUO

Blank

JBCD


If not successful

4th Fetch:MCUO

Blank

Blank


When a record is found, move UNL (from F069306) to UN, else move WKUN1 to UN.


1.


Data Structure

DN050007 - Get Local Union Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szUnionCodeUNcharNONENONE

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

cEverestEventPoint01EV01charNONENONE

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

szCostCenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

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.

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.

szUnionLocalcodeUNLcharNONENONE

A local unit of a union.

Related Functions

None

Related Tables

None