EditSubmitReturnCompRvwAllowed

Edit Submission/Return of Comp Review Is Allowed

Minor Business Rule

Object Name: N0800175

Parent DLL: CHRM

Location: Client/Server

Language: NER

Functional Description

Purpose

The NER validates whether submission or return of a particular supervisor's compensation review is 
allowed.


Setup Notes and Prerequisites

The required inputs are supervisor number, model name, review type, model owner, and the submit or 

return request code.  To validate submission, pass a '1' for the submit or return request code.  To 

validate return, pass a '2' for the submit or return request code.


The output is a "cAllowed" flag to indicate whether the submit or return flag is allowed.


Special Logic


Submit request:

A supervisor's compensation review can be submitted, only when all his/her lower level supervisors(if 

any) have submitted their work. Pass a '1' as the cAllowed flag, to indicate submission is ok.  

Otherwise, pass a '0' as the cAllowed flag.


Return Request:

A supervisor's compensation review cannot be returned, if his/her supervisor above has already 
submitted his/her work. Pass a '1' as the cAllowed flag to indicate return is ok.  Otherwise, pass a '0' as 

the cAllowed flag.  



Technical Specification


Initialize cAllowedFlag = '0'

If cSubmitReturnCode = '1'  //Submit is requested//
 

• Initialize cAllowedFlag = '1'
 

• Select V08830WFJC, selecting all of the supervisor's reports to be submitted, omitting the 
terminated reports

• FetchNext V08830WFJC, fetching the report address number (ie. AN8) and relationship level of the 
report to the supervisor submitting the work.

 

• While file I/O is successful and cAllowedFlag = '1'
• Select V08830WFJD, selecting all supervisors below who have not submitted(ie JTRRS <> '1')
• If fetchnext is successful // meaning not all supervisors below have submitted//
• set allowed flag = 0 // submit not allowed//
• Else
• Fetch next V08830WFJC, fetching the next reports
• End
• Endwhile
 

Else  //Else the request is not a submission of work//

• If cSubmitReturnCode = '2'  //Return is requested//
• Initialize cAllowedFlag = '1'
• Determine the next supervisor above, the supervisor being passed in the NER.  Call NER, 'Get Next 
Previous Supervisor'

• Check if the supervisor above has submitted his/her work, by calling NER, N0800174 'Check 
Supervisor submitted comp review'.

• If the supervisor above has submitted his/her work, set '0' as the cAllowedflag to indicate that 
the Return of the passed supervisor's compensation review is not allowed.

• End
End 



Data Structure

D0800175 - Edit Submission/Return of Comp Review Is Allowed

Parameter NameData ItemData TypeReq/OptI/O/Both
szModelName9MNAMEcharREQINPUT

The model name. Valid values are:    MASTER is a model name to be used for the Final Submitted Compensation.    PUBLIC model is 
controlled by a UDC Table.  Must use entry from the UDC Table.    PRIVATE model could have any name the owner chooses.

cReviewTypeRWTYPcharREQINPUT

A code that indicates the last compensation review type.

mnSupervisorANPAMATH_NUMERICREQINPUT

The address book number of the supervisor.

cSubmitReturnCodeEV01charREQINPUT

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

cAllowedFlagEV01charOPTOUTPUT

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

mnModelOwnerMOWNRMATH_NUMERICREQINPUT

The address book number of the person creating the model.

Related Functions

None

Related Tables

None