F1792GetPercentCovered

F1792 Get Percent Covered

Minor Business Rule

Object Name: N1700990

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.1Purpose
This NER will retrieve the Percent Covered from the Cost Code Percentages table (F1792). 


1.2Setup Notes and Prerequisites


1.3Special Logic



2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes

COVGRCoverage GroupIY

CCOSTCSMS Cost TypeIY

PCOVRPercentage CoveredO

SUPPSSuppressErrorMessagesI1 = Suppress Error Messages

DTAIErrorMessageIDO


2.2Related Tables 

Table Table Description

F1792Cost Code Percentages



2.3Related Business Functions

Source NameFunction Name



2.4Processing 

//

//Retrieve Percentage Covered 

//

Fetch.Single F1792

Pass in Coverage Group

Pass in CSMS Cost Type

Return Percent Covered

If not successful

Set error message id = '0002'

If suppress error messages <> '1'

Set NER ('00002', Coverage Group)

Endif

Endif


Data Structure

D1700990 - F1792 Get Percent Covered

Parameter NameData ItemData TypeReq/OptI/O/Both
szCoverageGroupCOVGRcharREQINPUT

A user defined code that specifies the Coverage Group. The Coverage Group consists of unlimited cost codes and the percentage 
covered for each cost code.

szCSMSCostTypeCCOSTcharREQINPUT

A code that designates the item being costed. Examples would be:    A1   Material    B1   Labor    X1   Freight    X2   Travel

mnPercentCoveredPCOVRMATH_NUMERICOPTNONE

The percentage covered under warranty or contract. This is used to calculate the amount to bill or the amount to cost for the line item being 
processed on the service order or call.

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None