CalculateCommissionAmounts

Calculate Commission Amounts

Minor Business Rule

Object Name: B4202140

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

D4202140 - Calculate Commission Amounts

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceEDOCOMATH_NUMERICOPTNONE

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.

szOrderTypeDCTOcharOPTNONE

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

szCompanyKeyOrderNoKCOOcharOPTNONE

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.

mnLineNumberLNIDMATH_NUMERICOPTNONE

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.

mnSalespersonCommission1SLCMMATH_NUMERICOPTNONE

The percentage commission rate that the system uses in computing commission liability on sales made by salesperson 01.

mnSalesperson1SLSMMATH_NUMERICOPTNONE

The first of two salespeople who have responsibility for or can receive a commission on sales to this customer. You create this code by 
using the Address Book system or the Related Salesperson form.

szOrderSuffixSFXOcharOPTNONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnFlatCommissionAmountFCAMATH_NUMERICOPTNONE

A value that specifies a commission amount. Enter a flat commission amount instead of a commission percentage. The per-unit amount 
must be entered to calculate commission amounts against the invoice, gross margin, or cost.

mnAmountPerUnitAPUNMATH_NUMERICOPTNONE

The dollar amount per unit of the item.

mnAddressNumberAN8MATH_NUMERICOPTNONE

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

jdDateTransactionJulianTRDJJDEDATEOPTNONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

szReportCodeAddBook001AC01charOPTNONE

One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to group address book 
records for reports, mailings, and so on. Category codes are user defined (system 01, types 01 through 30). Examples of category codes 
include: Category code 01   Location or Branch Category code 02 Salesperson Category code 03   Product Category code 04   Credit officer

szReportCodeAddBook002AC02charOPTNONE

One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for 
reports, mailings, and so on. Category codes are user-defined (system 01, types 01 through 30). Examples: Category code 01 - Location or 
Branch  Category code 02 - Account Representative  Category code 03 - New tenant  Category code 04 - Credit officer

szReportCodeAddBook003AC03charOPTNONE

One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for 
reports, mailings, and so on. Category codes are user-defined (system 01, types 01 through 30). Examples: Category code 01 - Location or 
Branch  Category code 02 - Salesperson  Category code 03 - New tenant  Category code 04 - Credit officer

szReportCodeAddBook004AC04charOPTNONE

One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for 
reports, mailings, and so on. Category codes are user-defined (system 01, types 01 through 30). Examples: Category code 01 - Location or 
Branch  Category code 02 - Salesperson  Category code 03 - New tenant  Category code 04 - Credit officer

szReportCodeAddBook005AC05charOPTNONE

One of thirty reporting codes that you can assign to an address in the Address Book system. Use these codes to identify addresses for 
reports, mailings, and so on. Category codes are user-defined (system 01, types 01 through 30). Examples: Category code 01               Location 
or Branch Category code 02               Salesperson Category code 03               New tenant Category code 04               Credit officer

szSalesReportingCode1SRP1charOPTNONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesReportingCode2SRP2charOPTNONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or 
use. This field represents one of ten property type categories available for sales purposes.

szSalesReportingCode3SRP3charOPTNONE

One of ten category codes for sales coding purposes. These codes can represent such classifications as color, material content, or use.

szSalesReportingCode4SRP4charOPTNONE

One of ten category codes to be used for sales coding purposes. These codes can represent such classifications as color, material 
content, or use.

szSalesReportingCode5SRP5charOPTNONE

One of ten category codes to be used for sales coding purposes.  These codes can represent such classifications as color, material 
content, or use.

szFreightHandlingCodeFRTHcharOPTNONE

A user defined code (42/FR) designating the method by which supplier shipments are delivered. For example, the supplier could deliver to 
your dock, or you could pick up the shipment at the supplier's dock. You can also use these codes to indicate who has responsibility for 
freight charges. For example, you can have a code indicating that the customer legally takes possession of goods as soon as they leave the 
supplier warehouse and is responsible for transportation charges to the destination.

mnAmountSalesTotalOrderTOTOMATH_NUMERICOPTNONE

The total dollar value of the extended list prices for the items on this order, less any applicable discounts.

mnAmtSalesOrderTotalCoORCSMATH_NUMERICOPTNONE

The Cost of Sales amount. The system subtracts this amount from the Order Sales amount to calculate the Gross Profit amount for this 
order.

mnAmountTotalLineCostLRCSMATH_NUMERICOPTNONE

The Cost of Sales amount. The system subtracts this amount from the line sales amount to calculate the gross profit amount for this order 
line.

mnAmountExtendedPriceAEXPMATH_NUMERICOPTNONE

The number of units multiplied by the unit price.

szCostCenterMCUcharOPTNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

cModeProcessingMODEcharOPTNONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

mnIdentifierShortItemITMMATH_NUMERICOPTNONE

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

szCurrencyCodeFromCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

cProofOrFinalEV01charOPTNONE

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

mnAmountCommissionCOMAMATH_NUMERICOPTNONE

The system computes this dollar amount as a potential commission liability. Based upon the sales amount at the order or line level, this 
amount might be the result of cost of sales, overhead "load" factor, minimum gross margin, and so forth. See Commission Constants.

mnJobnumberJOBSMATH_NUMERICOPTNONE

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

szComputerIDCTIDcharOPTNONE

cDtlCommTbleNotUpdatedEV01charOPTNONE

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

cOrderLevelCommissionsCMOLcharOPTNONE

An option that calculates commission amounts using the order or line level sales amounts. Valid values are: Blank Line level. During the 
commission calculation, the system uses sales line amounts. 1 Order level. During the commission calculation, the system uses salesperson 
order amounts. The salesperson order amount is the sum of all line amounts to which the salesperson is assigned.

Related Functions

None

Related Tables

None