CalculateCallPricing

Calculate Case Pricing

Minor Business Rule

Object Name: N1701750

Parent DLL: CCRIN

Location: Client/Server

Language: NER


1.Functional Description


1.1Purpose

The purpose of this business function is to calculate either the foreign and domestic flat rate amount or the foreign and domestic billing rate for the 

call or the time entry record attached to the call.


If the pricing method is flat rate then it will use the Advanced Pricing module to determine the foreign and domestic flat rate amount to charge for the 
call.  This flat rate amount does not include the percentage covered under a contract.  If the method of pricing is time and materials (T&M) then it will 

use the Advanced Pricing module to determine the foreign and domestic billing rate to charge for the time entry record.  This rate does not include the 

percentage covered under a contract.


This business function will be called from Call Entry (P17501) and the Call MBF (N1700140 and N1700720) whenever the call has not been billed and 

the foreign or domestic flat rate amount is zero and from Time Entry (P17505) whenever the time entry record has not been billed and the foreign or 

domestic billing rate is zero.


1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications

2.4Processing 

// 

//     If Currency Processing is Off OR the Currency Mode is Domestic

//     the Pricing Business Function will be called if the Domestic 

//     amounts are zero.

// 

//     Else the Pricing Business Function will be called if the Foreign

//     amounts are zero.

// 

// ------------------------------------------------------------------------------

// 

//     Calculate price from Domestic Amounts

// 

If SL CurrencyProcessing is equal to "N" Or BF cCurrencyMode_CRRM is equal to "D" 

// 
//     Pricing Method is Flat Rate - return the Flat Rate Amount & Foreign

//     Flat Rate Amount if applicable.

// 

If BF cMethodofPricing_MTHPR is equal to "F" And BF jdDateBilled_DTBIL is equal to  And BF 

mnFlatRateAmount_AMTFD is equal to  

F4072 CSMS Price Adjustment Shell
End If
// 

//     Pricing Method isTime & Material - return the Billing Rate &

//     Foreign Billing Rate if applicable.

// 

If BF cMethodofPricing_MTHPR is equal to "T" And BF jdDateBilled_DTBIL is equal to  And BF 

mnBillingRate_ARTBD is equal to  

F4072 CSMS Price Adjustment Shell
End If
Else

// ------------------------------------------------------------------------------
//     Calculate price from Foreign Amounts

//    

//     Pricing Method is Flat Rate - return the Flat Rate Amount & Foreign

//     Flat Rate Amount. 

// 

If BF cMethodofPricing_MTHPR is equal to "F" And BF jdDateBilled_DTBIL is equal to  And BF 

mnForeignFlatRateAmount_AMTFF is equal to  

F4072 CSMS Price Adjustment Shell
End If
// 

//     Pricing Method isTime & Material - return the Billing Rate &

//     Foreign Billing Rate.

// 

If BF cMethodofPricing_MTHPR is equal to "T" And BF jdDateBilled_DTBIL is equal to  And BF 

mnForeignBillingRate_ARTBF is equal to  

F4072 CSMS Price Adjustment Shell
End If
End If





Data Structure

D1701750 - Calculate Case Pricing

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateBilled_DTBILDTBILJDEDATEREQINPUT

In service billing, the date a customer was billed for a service.

cBillableYN_BILLBILLcharREQINPUT

Specifies whether a general ledger account should be billed. Valid codes are:    Y Yes, the account should be billed.    N No, it should not be 
billed.    1   It is eligible only for invoicing.    2   It is eligible only for revenue recognition.    4   It is eligible only for cost. Note: Codes 1, 2, and 4 
relate only to the Service Billing system.

szComputerID_CTIDCTIDcharREQINPUT

mnJobnumber_JOBSJOBSMATH_NUMERICREQINPUT

The job number (work station ID) which executed the particular job.

mnCallNumber_DOCODOCOMATH_NUMERICREQINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szDocumentType_DCTODCTOcharREQINPUT

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szDocumentCompany_KCOOKCOOcharREQINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnTimeEntryLineNumber_LNIDLNIDMATH_NUMERICOPTINPUT

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szCallAdjustmentSchedule_ASN3ASN3charREQINPUT

A user defined code (40/AS) that identifies a price and adjustment schedule.  A price and adjustment schedule contains one or more 
adjustment types for which a customer or an item might be eligible. The system applies the adjustments in the sequence that you specify in the 
schedule. You link customers to a price and adjustment schedule through the customer billing instructions. When you enter a case, the system 
copies the schedule attached to the sold-to address into the order. You can override this schedule at the header level.

szBaseCompanyCurrency_CRDCCRDCcharREQINPUT

A code that identifies the domestic (base) currency of the company on a transaction. 

szCustomerCurrency_CRCDCRCDcharOPTINPUT

A code that identifies the currency of a transaction. 

cSuppressErrorMessage_SUPPSSUPPScharOPTINPUT

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.

szErrorMessageID_DTAIDTAIcharOPTOUTPUT

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.

mnCustomerNumber_ANCANCMATH_NUMERICOPTINPUT

Client number in SAR records which corresponds to Address Book record.

mnSiteNumber_LANOLANOMATH_NUMERICOPTINPUT

The address book number for the lessor, renter, or lending institution.

szCustomerGroup_CGPCCGPCcharOPTINPUT

szSiteGroup_CGPCCGPCcharOPTINPUT

mnAdjustmentRevisionLevel_AREVAREVMATH_NUMERICOPTOUTPUT

This field maintains the current revision level of Advanced Pricing adjustments awarded within a sales order. Adjustments associated with 
a revision level below the current level are considered obsolete.

cAdvAdjustmentRevLevel_EV02EV02charOPTOUTPUT

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

cCurrencyMode_CRRMCRRMcharOPTINPUT

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

mnExchangeRate_CRRCRRMATH_NUMERICOPTINPUT

A number (exchange rate) that a foreign currency amount is multiplied by to calculate a domestic currency amount.  The number in this field 
can have a maximum of seven decimal positions. If more are entered, the system adjusts to the nearest seven decimal positions. 

mnShortItemNumber_ITMITMMATH_NUMERICOPTINPUT

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szBranchPlant_MMCUMMCUcharOPTINPUT

A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

szCompany_COCOcharOPTINPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szResponsibleBusinessUnit_MCUZMCUZcharOPTINPUT

Identifies a separate entity within a business for which you wish to track costs, for example, a warehouse location, job, project, work center, 
or branch/plant. The business unit field is alphanumeric. You can assign a business unit to a voucher, invoice, fixed asset, and so forth, for 
responsibility reporting.  The system provides reports of open A/P and A/R by business unit, for example, to track equipment by responsible 
department. Business Unit Security can prevent you from inquiring on business units for which you have no authority.

szPaymentTermsCode_PTCPTCcharOPTINPUT

A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date. 
Use a blank code to indicate the most frequently-used payment term. You define each type of payment term on the Payment Terms Revisions 
form. Examples of payment terms include: Blank Net 15 001      1/10 net 30 002      2/10 net 30 003      Due on the 10th day of every month 006     
Due upon receipt  This code prints on customer invoices.

cPaymentInstrument_RYINRYINcharOPTINPUT

The user defined code (00/PY) that specifies how payments are made by the customer. For example: C Check   D Draft   T Electronic funds 
transfer  

szCountry_CTRCTRcharOPTINPUT

A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion. The Address Book system 
uses the country code for data selection and address formatting.

szProductFamily_PRODFPRODFcharOPTINPUT

A code that classifies an inventory item into a group for customer service. Some examples include: Laser Printer, Inkjet, or Fax.

szProductModel_PRODMPRODMcharOPTINPUT

A code that classifies an inventory item into a model for customer service. Some examples include: Laser Printer, Inkjet or Fax.

jdPriceEffectiveDate_EFTJEFTJJDEDATEOPTINPUT

The date when a transaction, contract, obligation, preference, or policy rule becomes effective.

szServicePackage_SERPSERPcharOPTINPUT

A combination of service order type and coverage type used to define service support to which the customer is contractually entitled. A 
service package also contains response time and coverage group.

cTypeOfService_TYPSTYPScharOPTINPUT

A user defined code (00/TY) that indicates the classification of a work order or engineering change order. You can use work order type as a 
selection criterion for work order approvals.

szCostType_COSTCOSTcharOPTINPUT

A code that designates each element of cost for an item. Examples of the cost object types are:   o  A1  Purchased raw material   o  B1  
Direct labor routing rollup   o  B2  Setup labor routing rollup   o  C1  Variable burden routing rollup   o  C2  Fixed burden routing rollup   o  Dx  Outside 
operation routing rollup   o  Xx  Extra add-ons, such as electricity and water  The optional add-on computations usually operate with the type 
Xx extra add-ons. This cost structure allows you to use an unlimited number of cost components to calculate alternative cost rollups. The 
system then associates these cost components with one of six user defined summary cost buckets.

mnCallQueue_CALLQCALLQMATH_NUMERICOPTINPUT

The address number of the case provider group. To resolve customer problems, the system or a person can assign case to provider 
groups. A provider group might be that of a specific service person, or it might be a group that is used to monitor and assign requests to the 
provider groups of service personnel.

mnServiceProvider_AN8AN8MATH_NUMERICOPTINPUT

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

cCallType_CT01CT01charOPTINPUT

A code that specifies the type of case.

szCallPriority_PRIORPRIORcharOPTINPUT

The values that indicate the severity of the customer issue.

szLanguage_LNGPLNGPcharOPTINPUT

A user defined code (01/LP) that specifies the language to use on forms and printed reports. Before you specify a language, a code for that 
language must exist at either the system level or in your user preferences.

szEnvironment_ENVENVcharOPTINPUT

The operating environment of the user. Some examples include Windows 95, Windows NT, UNIX or AS/400.

szCallCatCode01_JC01JC01charOPTINPUT

User defined code associated with the team a customer issue is assigned to.

szCallCatCode02_JC02JC02charOPTINPUT

User defined reporting code for assigning customer issues.

szCallCatCode03_JC03JC03charOPTINPUT

User defined reporting code used when assigning customer issues.

szCallCatCode04_JC04JC04charOPTINPUT

User defined reporting code used when assigning customer issues.

mnBillableUnits_BLCNBLCNMATH_NUMERICOPTINPUT

In general, this field displays the total billable consumption amount billed for a utility. However, use of this fields varies in the Bill Calculation 
Routine and on the Bill Calculations Detail report (R19800). Depending on the type of charge calculated (the Bill Item Rate Basis), the value in 
this field multiplied by the billing rate produces the gross charge amount. The following list shows charge types and corresponding values 
that billable consumption represents:    B (finance charge) - The account's past due amount, on which the finance charge is based.    C 
(consumption) - The total billable units.    E (amount per billing period) - For bill calculation type 1 (the default), the value displayed represents the 
number of days in the billing period. For bill calculation type 2 (set up in UCIS system constants), the value displayed represents the 
billing-tenths of-a-month.    F (amount per on-cycle bill) - The same as for rate basis E.    L (meter size based) - The number of days in the billing period 
applicable to the meter's rate. This value should match the total length of the billing period unless a meter exchange requires proration.    M 
(amount per meter per on-cycle) - For bill calculation type 1 (the default), the value displayed represents the number of days in the billing period 
applicable to that rate. For bill calculation type 2         (set up in UCIS system constants), the value displayed represents the product of the 
number of meters multiplied by the billing-tenths-o         -a-month.    T (tiered consumption rates) - For bill calculation type 1 (the default), the value 
displayed represents either the amount of total billable units applicable to that tier (full-period billings only), or the average daily usage 
(partial-period billings only). For bill calculation type 2 (set up in UCIS system constants), the value displayed represents the prorated amount of 
the total billable units applicable to that tier's rate, based on billing-tenths-of-a-month.    X (surcharge) - The total amount of charges subject to 
this surcharge. You can use 7 for B, 1 for C, 3 for E, 8 for F, 4 for L, 5 for M, 6 for T, and 9 for X.

mnBillableHours_HRBLHRBLMATH_NUMERICOPTINPUT

The number of hours billed.

mnTotalElapsedHours_TELHTELHMATH_NUMERICOPTINPUT

The total elapsed hours for a particular well test.

mnUserReservedAmount_URATURATMATH_NUMERICOPTINPUT

This is a 15 position code that is reserved for the user.  JDE does not currently use this field and will not utilize this field in the future.

mnCommitmentDuration_COMDCOMDMATH_NUMERICOPTINPUT

The length of time (stored in minutes as an integer) that was committed to the customer.  This length of time is used to set due dates/times 
and escalation dates/times.

szPricingLaborUnitOfMeasure_UMUMcharOPTINPUT

A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box, 
cubic meter, liter, hour, and so on.

mnFlatRateAmount_AMTFDAMTFDMATH_NUMERICOPTBOTH

The monetary amount charged to the customer regardless of how many hours were spent or how many parts were used in performing the 
service. The monetary amount is expressed in the currency that is set up for the company initiating the transaction.

mnForeignFlatRateAmount_AMTFFAMTFFMATH_NUMERICOPTBOTH

The monetary amount charged to the customer regardless of how many hours were spent or how many parts were used in performing the 
service. The monetary amount is expressed in the currency that is set up for the customer.

mnBillingRate_ARTBDARTBDMATH_NUMERICOPTBOTH

The billing rate that the system uses when calculating the billable amount. The billing rate is expressed in the currency that is set up for the 
company initiating the transaction.

mnForeignBillingRate_ARTBFARTBFMATH_NUMERICOPTBOTH

The billing rate that the system uses when calculating the billable amount. The billing rate is expressed in the currency that is set up for the 
customer.

szLocation_LOCNLOCNcharOPTINPUT

The storage location from which goods will be moved.

szLot_LOTNLOTNcharOPTINPUT

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cMethodofPricing_MTHPRMTHPRcharOPTINPUT

A code used to determine if this type of service should be priced based on a flat rate or based on actual time and materials. Valid values 
are:    F        Charges for labor are based on one flat rate. Charges for parts are already included in the flat rate.    T        Charges for labor are 
based on actual labor hours. Charges for parts are based on actual parts used.    Blank A blank value is only valid when defining the Method of 
Pricing for a service provider. It is used to indicate that the service provider is an internal service provider and should not be paid.

mnTriangulationRate1_TRR1TRR1MATH_NUMERICOPTINPUT

The triangulation currency rate used to convert the From currency code to the Triangulation currency code.

mnTriangulationRate2_TRR2TRR2MATH_NUMERICOPTINPUT

The triangulation currency rate that used to convert from the Triangulation currency code to the To currency code.

cCurrencyConversionMethod_CRCMCRCMcharOPTINPUT

A value that specifies which method to use when converting from one currency to another. Valid values are:  Y  Multiplier method. The 
system multiplies the foreign amount by the multiplier exchange rate to calculate the domestic amount. Z Divisor method. The system divides the 
foreign amount by the divisor exchange rate to calculate the domestic amount.

mnAdvPricingProcessID_PEIDPEIDMATH_NUMERICREQBOTH

A code that identifies the Inter-Process Communication ID.

mnAdvPricingTransID_TCIDTCIDMATH_NUMERICREQBOTH

cUseBasePriceCalls_YN16YN16charOPTINPUT

The Yes or No Entry field is a common, single-character entry field for simple yes or no responses on prompt screens.

Related Functions

None

Related Tables

None