Functional Description
Purpose
The purpose of this NER is to get the calculated plan amount for up to 5 plans from N0800040 and pass
the amounts back to the calling application.
Setup Notes and Prerequisites
Special Logic
Technical Specifications
// Call next number to get the cache job number to be used by // Calculate plan Amount N0800040
Call X0010 - Get Next Number
// Loop once for each plan passed in. Calculate the plan // amount for each plan.
If BF mnNumberPlansToCalculate is equal to Zero then set
BF mnNumberPlansToCalculate = "5"
End If
Set the Counter = "1"
Loop While Counter is less than or equal to the NumberPlansToCalculate
If Counter is equal to "1" then set event variables equal to the first passed in plan,
option, and rate
VA evt_szPlanId_PLAN = BF szPlanId_1
VA evt_szOption_AOPT = BF szPlanAdditionalOption_1
VA evt_mnAmountRate_MATH01 = BF mnEnteredAmountRate_1
Else
If Counter is equal to "2" then set event variables equal to the second passed in plan,
option, and rate
VA evt_szPlanId_PLAN = BF szPlanId_2
VA evt_szOption_AOPT = BF szPlanAdditionalOption_2
VA evt_mnAmountRate_MATH01 = BF mnEnteredAmountRate_2
Else
If Counter is equal to "3" then set event variables equal to the third passed in plan,
option, and rate
VA evt_szPlanId_PLAN = BF szPlanId_3
VA evt_szOption_AOPT = BF szPlanAdditionalOption_3
VA evt_mnAmountRate_MATH01 = BF mnEnteredAmountRate_3
Else
If Counter is equal to "4" then set event variables equal to the fourth passed in plan,
option, and rate
VA evt_szPlanId_PLAN = BF szPlanId_4
VA evt_szOption_AOPT = BF szPlanAdditionalOption_4
VA evt_mnAmountRate_MATH01 = BF mnEnteredAmountRate_4
Else
If Counter is equal to "5" then set event variables equal to the fifth passed in plan,
option, and rate
VA evt_szPlanId_PLAN = BF szPlanId_5
VA evt_szOption_AOPT = BF szPlanAdditionalOption_5
VA evt_mnAmountRate_MATH01 = BF mnEnteredAmountRate_5
End If
End If
End If
End If
End If
// ********************************
Call 'Calculate Plan Amount' N0800040 once for each plan passed in and get evt_mnAmountRate_MATH01,
VA evt_mnDBA1Amount_PCOS, and VA evt_mnDBA3Amount_PCRE.
Call 'Calculate Plan Amount Cache' to clear the cache
// ********************************
If Counter is equal to "1" then set business function variables to be passed back
to the calling application equal to the event variables from N0800040
BF mnEnteredAmountRate_1 = VA evt_mnAmountRate_MATH01
BF mnDBA1CalculatedAmt_1 = VA evt_mnDBA1Amount_PCOS
BF mnDBA3CalculatedAmt_1 = VA evt_mnDBA3Amount_PCRE
Else
If Counter is equal to "2" then set business function variables to be passed back
to the calling application equal to the event variables from N0800040
BF mnEnteredAmountRate_2 = VA evt_mnAmountRate_MATH01
BF mnDBA1CalculatedAmt_2 = VA evt_mnDBA1Amount_PCOS
BF mnDBA3CalculatedAmt_2 = VA evt_mnDBA3Amount_PCRE
Else
If Counter is equal to "3" then set business function variables to be passed back
to the calling application equal to the event variables from N0800040
BF mnEnteredAmountRate_3 = VA evt_mnAmountRate_MATH01
BF mnDBA1CalculatedAmt_3 = VA evt_mnDBA1Amount_PCOS
BF mnDBA3CalculatedAmt_3 = VA evt_mnDBA3Amount_PCRE
Else
If Counter is equal to "4" then set business function variables to be passed back
to the calling application equal to the event variables from N0800040
BF mnEnteredAmountRate_4 = VA evt_mnAmountRate_MATH01
BF mnDBA1CalculatedAmt_4 = VA evt_mnDBA1Amount_PCOS
BF mnDBA3CalculatedAmt_4 = VA evt_mnDBA3Amount_PCRE
Else
If Counter is equal to "5" then set business function variables to be passed back
to the calling application equal to the event variables from N0800040
BF mnEnteredAmountRate_5 = VA evt_mnAmountRate_MATH01
BF mnDBA1CalculatedAmt_5 = VA evt_mnDBA1Amount_PCOS
BF mnDBA3CalculatedAmt_5 = VA evt_mnDBA3Amount_PCRE
End If
End If
End If
End If
End If
Increment the counter to calculate up to five plans
Counter = Counter + 1
End of the While loop
D0800145 - Calculate DBA Amount Rate
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szPlanId_1 | PLAN | char | REQ | INPUT |
An abbreviation or number that identifies a specific employee benefit. Examples are:
o Employee Health Insurance
o Accidental Death
| ||||
szPlanId_2 | PLAN | char | OPT | INPUT |
An abbreviation or number that identifies a specific employee benefit. Examples are:
o Employee Health Insurance
o Accidental Death
| ||||
szPlanId_3 | PLAN | char | OPT | INPUT |
An abbreviation or number that identifies a specific employee benefit. Examples are:
o Employee Health Insurance
o Accidental Death
| ||||
szPlanId_4 | PLAN | char | OPT | INPUT |
An abbreviation or number that identifies a specific employee benefit. Examples are:
o Employee Health Insurance
o Accidental Death
| ||||
szPlanId_5 | PLAN | char | OPT | INPUT |
An abbreviation or number that identifies a specific employee benefit. Examples are:
o Employee Health Insurance
o Accidental Death
| ||||
szPlanAdditionalOption_1 | AOPT | char | REQ | INPUT |
A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table
| ||||
szPlanAdditionalOption_2 | AOPT | char | OPT | INPUT |
A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table
| ||||
szPlanAdditionalOption_3 | AOPT | char | OPT | INPUT |
A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table
| ||||
szPlanAdditionalOption_4 | AOPT | char | OPT | INPUT |
A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table
| ||||
szPlanAdditionalOption_5 | AOPT | char | OPT | INPUT |
A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table
| ||||
mnEnteredAmountRate_1 | MATH01 | MATH_NUMERIC | OPT | BOTH |
- - - Good Performance Low Value. | ||||
mnEnteredAmountRate_2 | MATH01 | MATH_NUMERIC | OPT | BOTH |
- - - Good Performance Low Value. | ||||
mnEnteredAmountRate_3 | MATH01 | MATH_NUMERIC | OPT | BOTH |
- - - Good Performance Low Value. | ||||
mnEnteredAmountRate_4 | MATH01 | MATH_NUMERIC | OPT | BOTH |
- - - Good Performance Low Value. | ||||
mnEnteredAmountRate_5 | MATH01 | MATH_NUMERIC | OPT | BOTH |
- - - Good Performance Low Value. | ||||
mnAddressNumber | AN8 | MATH_NUMERIC | REQ | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
jdDateEffectiveRates | EFT | JDEDATE | REQ | INPUT |
The date that identifies when a date is first valid. The effective date is used generically. It can be a lease effective date, a price or cost
| ||||
mnNumberPlansToCalculate | MATH01 | MATH_NUMERIC | REQ | INPUT |
- - - Good Performance Low Value. | ||||
mnDBA1CalculatedAmt_1 | PCOS | MATH_NUMERIC | OPT | OUTPUT |
The cost that the system calculates for a plan or plan option. | ||||
mnDBA1CalculatedAmt_2 | PCOS | MATH_NUMERIC | OPT | OUTPUT |
The cost that the system calculates for a plan or plan option. | ||||
mnDBA1CalculatedAmt_3 | PCOS | MATH_NUMERIC | OPT | OUTPUT |
The cost that the system calculates for a plan or plan option. | ||||
mnDBA1CalculatedAmt_4 | PCOS | MATH_NUMERIC | OPT | OUTPUT |
The cost that the system calculates for a plan or plan option. | ||||
mnDBA1CalculatedAmt_5 | PCOS | MATH_NUMERIC | OPT | OUTPUT |
The cost that the system calculates for a plan or plan option. | ||||
mnDBA3CalculatedAmt_1 | PCRE | MATH_NUMERIC | OPT | OUTPUT |
The credit that the system calculates for a plan or plan option. | ||||
mnDBA3CalculatedAmt_2 | PCRE | MATH_NUMERIC | OPT | OUTPUT |
The credit that the system calculates for a plan or plan option. | ||||
mnDBA3CalculatedAmt_3 | PCRE | MATH_NUMERIC | OPT | OUTPUT |
The credit that the system calculates for a plan or plan option. | ||||
mnDBA3CalculatedAmt_4 | PCRE | MATH_NUMERIC | OPT | OUTPUT |
The credit that the system calculates for a plan or plan option. | ||||
mnDBA3CalculatedAmt_5 | PCRE | MATH_NUMERIC | OPT | OUTPUT |
The credit that the system calculates for a plan or plan option. | ||||
cError | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. | ||||
mnDBA2CalculateAmt1 | ERAM | MATH_NUMERIC | OPT | OUTPUT |
An additional amount that the employer contributes toward the cost of a benefit option. For example, an employer might pay 100.00 toward
|
None |
None |