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'
If fetchnext is successful // meaning not all supervisors below have submitted//
Else //Else the request is not a submission of work//
If cSubmitReturnCode = '2' //Return is requested//
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
D0800175 - Edit Submission/Return of Comp Review Is Allowed
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szModelName9 | MNAME | char | REQ | INPUT |
The model name. Valid values are:
MASTER is a model name to be used for the Final Submitted Compensation.
PUBLIC model is
| ||||
cReviewType | RWTYP | char | REQ | INPUT |
A code that indicates the last compensation review type. | ||||
mnSupervisor | ANPA | MATH_NUMERIC | REQ | INPUT |
The address book number of the supervisor. | ||||
cSubmitReturnCode | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
cAllowedFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
mnModelOwner | MOWNR | MATH_NUMERIC | REQ | INPUT |
The address book number of the person creating the model. |
None |
None |