CalculateandSumAdjustments

Calculate and Sum Adjustments

Minor Business Rule

Object Name: B4500740

Parent DLL: CDIST

Location: Client/Server

Language: C

Data Structure

D4500740A - Calculate and Sum Adjustments

Parameter NameData ItemData TypeReq/OptI/O/Both
cAdjustmentCalculationModeCALCMDcharOPTNONE

A code that indicates whether the adjustment calculation request originated from an order entry program, a manual change, or a 
recalculation process. Valid values are: 1 Order entry program, such as F4072 Calculate Price Adjustments (B4500050) 2 Manual change, such as Check 
Price and Availability (P4074). 3 Recalculation, such as F4074 Price Adjustment Ledger Server (B4500090)

cModeProcessingMODEcharOPTNONE

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

cBasisCodeBSCDcharOPTNONE

A code that specifies how the system uses the factor value to calculate the adjustment or penalty schedule. The Basis Code field works 
with the Factor Value field. Valid values are: 1 Multiply the base price by the factor value. The adjusted price is a percentage of the base 
price. 2 Multiply the current net price by the factor value. The adjusted price is a percentage of the current net price. 3 Multiply the item cost by the 
factor value. The adjusted price is a percentage of the item cost. You cannot use this basis code for a basket-level or order-level 
adjustment. 4 Add the factor value to the item cost. You cannot use this basis code for a basket-level or order-level adjustment. Note: If you use basis code 3 
or 4, specify the item cost that you want to use in the calculation in the Cost Method field (LEDG) in the detail area of the Price Adjustment 
Detail form. 5 Adjust the price by the factor value. If the value is positive, it increases the price by that amount; if the value is negative, it 
decreases the price by that amount. 6 Use the adjustment amount from the variable table. You specify the variable table in the Factor Value field. 7 Use 
a formula to calculate the adjustment. You specify the name of the formula in the Factor Value field. 8 Use a custom, user-defined program to 
calculate the adjustment. You specify the program ID in the Object Library field.         Note: If you define an adjustment that uses a custom 
program, the program must be one that you developed for this purpose and are prepared to support. J.D. Edwards is not responsible for providing 
custom programs or for supporting programs that you have developed. 9 Calculate the adjustment so that the resulting unit price has a gross 
profit margin equal to the factor value. You cannot use this basis code for a basket-level or order-level adjustment, or for a sliding rate 
adjustment. For Agreement Penalty Schedules, enter 5 for all penalty schedules.

mnFactorValueFVTRMATH_NUMERICOPTNONE

A code that indicates how the system adjusts an order line. The value in this field works in conjunction with the Basis field (BSCD). How you 
define the Basis field determines whether you enter a number or a code in this field. For WorldSoftware , if your basis code is    1-5   Enter a 
positive number for markups, for example, 10. Enter a negative number for discounts, for example, 10-.    6     You want to base the adjustment on 
a variable table. Enter the code that identifies the variable table.    7     You want to use a formula to calculate the price. Enter the code that 
identifies the formula.    8     You want to calculate the adjustment using a custom program. Enter the program ID. For Agreement Penalty 
Schedules: Because the basis code for penalties is 5,enter a number as the factor value. Most agreement penalties are for a currency amount. The 
system multiplies the factor you enter by each unit of measure to calculate the penalty. For OneWorld, if your BasisCode is    1-5   Enter a 
positive number for markups, for example, 10. Enter a negative number for discounts, for example, 10-.    6     You want to base the adjustment on a 
variable table. Enter the code that identifies the variable table in the Formula Name column.    7     You want to use a formula to calculate the 
price. Enter the code that identifies the formula in the Formula Name column.    8     You want to calculate the adjustment using a custom 
program. Enter the program ID in the Formula Name column.

cAdjustmentControlCodeACNTcharOPTNONE

A code that specifies additional processing features related to an adjustment. Valid values are: 1 Do not print the adjustment on the invoice 
or the purchase order print document. The system adds the adjustment amount to the unit price. 2 Print the adjustment on the invoice or the 
purchase order print document. The system adds the adjustment amount to the unit price. 3 Update the Sales Order Detail File table (F4211) with 
adjustment detail line information. The system will not include this type of adjustment when it calculates the current net price. Use this code for 
order-level adjustments only. 4 Create an accrual adjustment. The system updates the Price Adjustment Ledger File table (F4074) and 
posts the adjustment to the general ledger during the Sales Update process.  5 Create a rebate adjustment. The system updates the Rebate 
Transaction Summary table (F4078) with the quantity, weight, and amount of the order detail line.  6 Print the adjustment on the invoice. The 
system adds the adjustment to the order total, but does not include it in the unit price. The system will post separate G/L and A/R entries for this 
adjustment during Sales Update.  7 Create a supplier proof of sale rebate adjustment. The system updates the Rebate Transaction Summary 
table with the quantity, weight, and amount of the order detail line and posts the adjustment to the general ledger during Sales Update.  8 Create 
a rounding adjustment, based on the rounding rules set up in the Price Adjustment Detail Revisions program (P4072). The system adds the 
adjustment amount to the unit price. 

mnBasePriceUPRCMATH_NUMERICOPTNONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnForeignBasePriceFUPMATH_NUMERICOPTNONE

The foreign price per unit.

mnUnitCostUNCSMATH_NUMERICOPTNONE

The amount per unit, derived by dividing the total cost by the unit quantity.

mnForeignUnitCostFUCMATH_NUMERICOPTNONE

Amount - Foreign Unit Cost

mnAdjustmentUPRCMATH_NUMERICOPTNONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnForeignAdjustmentFUPMATH_NUMERICOPTNONE

The foreign price per unit.

cAdjustmentSummationModeSUMMDcharOPTNONE

A code that determines how the system processes adjustments. Valid values are: Blank The system does not aggregate adjustments. 1 The 
system aggregates adjustments. 2 The system calculates and aggregates the adjustments.

mnSumAdjustmentsUPRCMATH_NUMERICOPTNONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnSumForeignAdjustmentsFUPMATH_NUMERICOPTNONE

The foreign price per unit.

mnSumDetachedAdjDETDMATH_NUMERICOPTNONE

The total sum of Detached Adjustments which relate to a Sales Order Detail line. This amount is expressed in the domestic currency.

mnSumForeignDetachedAdjDETFMATH_NUMERICOPTNONE

The total sum of Detached Adjustments which relate to a Sales Order Detail line. This amount is expressed in the foreign currency.

cCurrencyConversionMethodCRCMcharOPTNONE

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.

cCurrencyControlCRYRcharOPTNONE

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

mnTriangulationRateFromTRD1MATH_NUMERICOPTNONE

The triangulation rate used as a workfield when converting from the From currency to the triangulation currency code.

mnTriangulationRateToTRD2MATH_NUMERICOPTNONE

The triangulation rate used as a workfield when converting from the To currency to the triangulation currency code.

szCurrencyCodeFromCRCDcharOPTNONE

A code that identifies the currency of a transaction. 

szCurrencyCodeToCRDCcharOPTNONE

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

cAdjCurrencyModeEV01charOPTNONE

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

cAdjustmentOverrideABAScharOPTNONE

A code indicating how the adjustment affects the price of a sales order line. For WorldSoftware, valid codes are:    Y The adjustment price 
overrides the base price.    N The adjustment is used to calculate a discount or markup to the base price. For OneWorld, a checkmark indicates 
that the override price overrides the base price. No checkmark indicates that the adjustment is used to calculate a discount or markup to the 
base price. For Agreement Penalty Schedules:     o For WorldSoftware, enter N.     o For OneWorld, leave the override price turned off (no 
checkmark).

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.

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

szStandardUOMConversionTFLAcharOPTNONE

Allows you to bypass the item-specific unit of measure and use the standard unit of measure. Valid values are:    blank Use the item-specific 
unit of measure    1       Bypass the item-specific unit of measure and use the standard unit of measure

cF4101FlagEV01charOPTNONE

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

szUnitOfMeasurePricingUOM4charOPTNONE

A user defined code (00/UM) that indicates the unit of measure in which you usually price the item.

szAdjustmentUnitOfMeasureUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szUnitOfMeasurePrimaryUOM1charOPTNONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

cLevelBreakTypeLBTcharOPTNONE

A user defined code that indicates how level breaks occur in the Price Adjustment Detail table (F4072). The system supports the following 
four  types of level breaks: Quantity The system determines the correct adjustment based on the quantity ordered in the sales order. You can 
set up different adjustment breaks for different units of measure. Weight The system uses the weight assigned to the sales order detail line 
item to determine the proper adjustment level break. Amount The system uses the extended amount of the sales order detail line to determine 
the proper adjustment level break. When Currency Conversion is turned on, all amount-level breaks are stored and displayed based on the 
floating decimals of the currency code. None The system uses advanced preference features to determine the proper adjustment level break. 
Use this option only if you are using advanced preferences. 

cOrderLevelAdjustmentYNOLVLcharOPTNONE

A code that specifies the level at which the system calculates price adjustments. Valid values are: 1 Line level - The system calculates the 
adjustment based on information in the sales order detail line. 2    Basket level - The system calculates the adjustment based on information 
accumulated from all sales order detail lines that you have identified as a basket pricing group. You define the basket reprice group on the 
Additional Information tab on the Item Branch Information form in the Item branch program (P41026). If you are defining a basket or order level 
adjustment, leave the Item Group and Order Detail Group fields blank.  3 Order level - The system calculates the adjustment based on 
information accumulated from all the sales order detail lines you have identified as an order pricing group. You define the order reprice group on the 
Additional Information tab on the Item Branch Information form in the Item branch program. If you are defining a basket or order level 
adjustment, leave the Item Group and Order Detail Group fields blank.  4 Volume incentive level - The system calculates the adjustment based on the 
accumulated value of multiple sales orders. The accumulated value is based on how you define the adjustment in the Price Adjustment 
Type program (P4071). If you are working with the Agreement Management system, for Agreement Penalty Schedules, enter 1 to calculate the 
penalty at the sales order detail-line level.

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.

cSuppressErrorMessageERRcharOPTNONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

mnConversionFactorCONVMATH_NUMERICOPTNONE

The factor that the system uses to convert one unit of measure to another unit of measure.

nUOMConversionFlagINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

nDomesticDisplayDecimalsINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

nForeignDisplayDecimalsINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

cIsFirstAdjustmentYNEV01charOPTNONE

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

cExchangeRateYNEV01charOPTNONE

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

mnExchangeRateCRRMATH_NUMERICOPTNONE

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. 

cBasePriceYNEV01charOPTNONE

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

mnEligiblePercentageMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

szTransactionUOMUOMcharOPTNONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnBasedOnValueBSDVALMATH_NUMERICOPTNONE

A value that the system uses to calculate an adjustment. The value can be a quantity, weight, or amount.

szAdjustmentCalculationADJCALcharOPTNONE

An equation that the system uses to determine the adjustment unit price for sliding rate adjustments or adjustments that do not allow partial 
quantities.

cPartialsYNPARTFGcharOPTNONE

An option that indicates whether the system awards discounts to partial values (quantities, weights, or amounts).  For example, if a certain 
discount is to be awarded for quantities of two dozen and greater, selecting this option allows the system to award the adjustment to two dozen, 
24 each, or any quantity that is greater. If you leave this option blank, then the system does not award the discount to partial quantities. For 
example, when a customer orders 30 each, then only 24 each are discounted. Valid values are: Blank The system does not allow partial 
values. 1 The system allows partial values. This is the default value. 

szAdjustmentNameASTcharOPTNONE

A user defined code (system 40, type TY) that identifies an adjustment definition. You define adjustments on Price Adjustment Names. For 
Agreement Penalty Schedules Add a definition for each of the four types of penalties:        Minimum quantity         Maximum quantity         Under 
commitment         Over commitment

mnTransactionQtyUORGMATH_NUMERICOPTNONE

The quantity of units affected by this transaction.

mnPriceAdjustmentKeyIDATIDMATH_NUMERICOPTNONE

The unique key I.D. for each adjustment level.

mnOverrideBasePriceOVBPRCMATH_NUMERICOPTNONE

The foreign base price that the system calculates when no base price exists in the Item Base Price File table (F4106). The system 
calculates this value when all of the following conditions apply:   o  The base price for the item in the Item Base Price File table is zero.   o  The first 
adjustment is an override adjustment.   o  The currency mode is foreign (F).

mnOverrideForeignBasePriceOVFBPRCMATH_NUMERICOPTNONE

The foreign base price that the system calculates when no base price exists in the Item Base Price File table (F4106). The system 
calculates this value when all of the following conditions apply:   o  The base price for the item in the Item Base Price File table is zero.   o  The first 
adjustment is an override adjustment.   o  The currency mode is foreign (F).

szFactorValueUMFVUMcharOPTNONE

A user defined code (00/UM) that specifies the unit of measure associated with the factor value for an advanced price adjustment.   This 
value is valid for adjustments that represent a whole monetary unit only. For example, you can define a level break of 10 DZ and an adjustment 
will award a discount of 1 USD per EA.

mnTotalQtyWgtAmtMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

cSlidingRateFlagSRFLAGcharOPTNONE

An option that specifies how the system applies adjustments to the unit price. Valid values are: On The system applies a sliding rate 
adjustment. This type of adjustment is based on a collection of rates that are applied from each threshold level. Off The system applies a single rate 
adjustment. This type of adjustment is based on the most applicable threshold. Note: If you choose the sliding rate, you cannot add a gross 
profit margin adjustment (basis code 9) to this adjustment.

szRULENAMERULENAMEcharOPTNONE

The name of the set of instructions that characterize a specific rounding rule requirement.

szDualUOMUOM2charOPTNONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

mnDualQtySQORMATH_NUMERICOPTNONE

If the secondary unit of measure option in Inventory Constants is selected,this field will display on data entry screens.

mnSlidingRateCumAdjsUPRCMATH_NUMERICOPTNONE

The list or base price to be charged for one unit of this item. In sales order entry, all prices must be set up in the Item Base Price File table 
(F4106).

mnSlidingRateCumForAdjsFUPMATH_NUMERICOPTNONE

The foreign price per unit.

cFlatRatePA08charOPTNONE

An option that indicates whether the detached adjustment is a flat rate regardless of the quantity ordered. Note that the system does not 
multiply flat rate adjustments by item quantity when determining the sales order total price. If you choose this option, the detached adjustment is 
a flat rate.

Related Functions

None

Related Tables

None