CalculateDBAAmount

Calculate DBA Amount Rate

Minor Business Rule

Object Name: N0800145

Parent DLL: CHRM

Location: Client/Server

Language: NER

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


Data Structure

D0800145 - Calculate DBA Amount Rate

Parameter NameData ItemData TypeReq/OptI/O/Both
szPlanId_1PLANcharREQINPUT

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

szPlanId_2PLANcharOPTINPUT

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

szPlanId_3PLANcharOPTINPUT

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

szPlanId_4PLANcharOPTINPUT

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

szPlanId_5PLANcharOPTINPUT

An abbreviation or number that identifies a specific employee benefit. Examples are:   o  Employee Health Insurance   o  Accidental Death 
and Dismemberment   o  Health Club Expense Reimbursement   o  Employee Stock Appreciation Rights  A benefit plan typically is associated 
with a deduction, benefit, or accrual. For example, a medical plan is a benefit that might also require a deduction to withhold premiums from 
an employee's pay.

szPlanAdditionalOption_1AOPTcharREQINPUT

A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table 
(F083202). Note: Additional options must have the same provider, policy number, and enrollment and eligibility rules as the benefit plan to which they 
are associated.

szPlanAdditionalOption_2AOPTcharOPTINPUT

A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table 
(F083202). Note: Additional options must have the same provider, policy number, and enrollment and eligibility rules as the benefit plan to which they 
are associated.

szPlanAdditionalOption_3AOPTcharOPTINPUT

A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table 
(F083202). Note: Additional options must have the same provider, policy number, and enrollment and eligibility rules as the benefit plan to which they 
are associated.

szPlanAdditionalOption_4AOPTcharOPTINPUT

A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table 
(F083202). Note: Additional options must have the same provider, policy number, and enrollment and eligibility rules as the benefit plan to which they 
are associated.

szPlanAdditionalOption_5AOPTcharOPTINPUT

A code that identifies any additional options available for a benefit plan that have been defined in the Plan Additional Options table 
(F083202). Note: Additional options must have the same provider, policy number, and enrollment and eligibility rules as the benefit plan to which they 
are associated.

mnEnteredAmountRate_1MATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

mnEnteredAmountRate_2MATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

mnEnteredAmountRate_3MATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

mnEnteredAmountRate_4MATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

mnEnteredAmountRate_5MATH01MATH_NUMERICOPTBOTH

- - - Good Performance Low Value. 

mnAddressNumberAN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

jdDateEffectiveRatesEFTJDEDATEREQINPUT

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 
effective date, a currency effective date, a tax rate effective date, or whatever is appropriate.

mnNumberPlansToCalculateMATH01MATH_NUMERICREQINPUT

- - - Good Performance Low Value. 

mnDBA1CalculatedAmt_1PCOSMATH_NUMERICOPTOUTPUT

The cost that the system calculates for a plan or plan option.

mnDBA1CalculatedAmt_2PCOSMATH_NUMERICOPTOUTPUT

The cost that the system calculates for a plan or plan option.

mnDBA1CalculatedAmt_3PCOSMATH_NUMERICOPTOUTPUT

The cost that the system calculates for a plan or plan option.

mnDBA1CalculatedAmt_4PCOSMATH_NUMERICOPTOUTPUT

The cost that the system calculates for a plan or plan option.

mnDBA1CalculatedAmt_5PCOSMATH_NUMERICOPTOUTPUT

The cost that the system calculates for a plan or plan option.

mnDBA3CalculatedAmt_1PCREMATH_NUMERICOPTOUTPUT

The credit that the system calculates for a plan or plan option.

mnDBA3CalculatedAmt_2PCREMATH_NUMERICOPTOUTPUT

The credit that the system calculates for a plan or plan option.

mnDBA3CalculatedAmt_3PCREMATH_NUMERICOPTOUTPUT

The credit that the system calculates for a plan or plan option.

mnDBA3CalculatedAmt_4PCREMATH_NUMERICOPTOUTPUT

The credit that the system calculates for a plan or plan option.

mnDBA3CalculatedAmt_5PCREMATH_NUMERICOPTOUTPUT

The credit that the system calculates for a plan or plan option.

cErrorEV01charOPTOUTPUT

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

mnDBA2CalculateAmt1ERAMMATH_NUMERICOPTOUTPUT

An additional amount that the employer contributes toward the cost of a benefit option. For example, an employer might pay 100.00 toward 
the cost of the option for family medical coverage.

Related Functions

None

Related Tables

None