F1726GetContractDurationRange

F1726 Get Contract Duration Range

Minor Business Rule

Object Name: N1701260

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This business function will be used to return the Contract Duration to be used for Advanced Pricing based on the Duration input and the range it falls 

within.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications


2.4Processing 

//

//Initialize Variables

//

VA VA StopFlag is equal to N

VA From Billing Duration is equal to 0

VA Thru Billing Duration is equal to 0

VA Advanced Pricing Duration is equal to 0

//

//Check for valid duration

//

SelectAll.F1726

FetchNext.F1726

VA From Billing Duration (FBDUR) <- FromBillingDuration

VA Thru Billing Duration (TBDUR) <- ThruBillingDuration

VA Advanced Pricing Duration <- AdvPricingDuration

IF File I/O is equal to Success

WHILE VA StopFlag not equal to Y

IF Input Duration is greater than or equal to VA From Billing Duration AND
Input Duration is less than or equal to VA Thru Billing Duration

Pricing Duration is equal to VA Advanced Pricing Duration

VA StopFlag is equal to Y

ELSE

FetchNext.F1726

VA From Billing Duration (FBDUR) <- FromBillingDuration
VA Thru Billing Duration (TBDUR) <- ThruBillingDuration

VA Advanced Pricing Duration <- AdvPricingDuration

IF SV File_IO_Status is not equal to Success
VA StopFlag = Y
END IF

END IF

END WHILE

END IF


Data Structure

D1701260 - F1726 Get Contract Duration Range

Parameter NameData ItemData TypeReq/OptI/O/Both
mnInputDuration_CDURCDURMATH_NUMERICREQINPUT

This is the duration that will be used to loop through F1726 records to see which range it falls 
within.

^

szInputUOM_UOMUOMcharOPTNONE

This parameter is not currently being used.  This will be a future enhancement.
^

mnAdvPrBillingDuration_ABDURABDURMATH_NUMERICOPTOUTPUT

Billing Duration to be passed into Advanced Pricing.
^

szAdvPrBillingDurationUOM_UOMUOMcharOPTNONE

This parameter is not currently being used.  This will be a future enhancement.
^

cSuppressErrorMessage_SUPPSSUPPScharOPTNONE

This parameter is not currently being used.  
^

szErrorMessageID_DTAIDTAIcharOPTNONE

This parameter is not currently being used.  
^

Related Functions

None

Related Tables

None