PriceCostUpdateMathCurrency

PriceCostUpdateMathCurrency

Minor Business Rule

Object Name: B3201830

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function is intended to set Currency for various Math Numeric data structures.



1.2Setup Notes and Prerequisites
Need to know "szCurrencyCodeFrom" - base currency.


1.3Special Logic

None


2.Technical Specifications


2.1Parameters:

Data Item Data Structure 



DescriptionI/ORequiredNotes SUPPScSuppressErrorMessageIO DTAIszErrorMessageIDIO CRCDszCurrencyCodeFromIR CRDCszCurrencyCodeToIO AEXPmnAmountExtendedPriceI/OO ECSTmnAmountExtendedCostI/OO UPRCmnAmtUnitPriceI/OO UNCSmnAmtUnitCostI/OO FEAmnAmountForeignExtPriceI/OO FECmnAmountForeignExtCostI/OO FUPmnAmtForeignUnitPriceI/OO FUCmnAmtForeignUnitCostI/OO LPRCmnAmtListUnitPriceI/OO FPRCmnAmtForeignUnitListPriceI/OO




2.3Related Business Functions

Source NameFunction Name B0000129RetrieveCurrencyDecimals


2.4Processing
If (szCurrencyCodeFrom not equal BLANK)

   Call B0000129 to get number of decimals for Domestic Currency given szCurrencyCodeFrom

      If (szCurrencyCodeTo not equal BLANK  && not same as szCurrencyCodeFrom)

        Call B0000129 to get number of decimals for Foreign Currency given szCurrencyCodeTo

      Else

        number of decimals for Foreign Currency  = number of decimals for Domestic Currency

      End If 

Else

Use API to set Currency for MathNumeric Input Fields

End If 



3.2 Where Used: APPs/UBEs/NERs/BSFNs


Application/Business FunctionApplication/BF 

Name B3201460CalculateItemPriceCost B3200460F3293EvaluateAndProcessAIR P32942Configured Item Specifications B3201730CalculateItemCostPrice


Data Structure

D3201830 - PriceCostUpdateMathCurrency

Parameter NameData ItemData TypeReq/OptI/O/Both
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.

szCurrencyCodeFromCRCDcharREQNONE

A code that identifies the currency of a transaction. 

szCurrencyCodeToCRDCcharOPTNONE

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

mnAmountExtendedPriceAEXPMATH_NUMERICOPTNONE

The number of units multiplied by the unit price.

mnAmountExtendedCostECSTMATH_NUMERICOPTNONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnAmtUnitPriceUPRCMATH_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).

mnAmtUnitCostUNCSMATH_NUMERICOPTNONE

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

mnAmountForeignExtPriceFEAMATH_NUMERICOPTNONE

The product of the foreign price times the number of units.

mnAmountForeignExtCostFECMATH_NUMERICOPTNONE

The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.

mnAmtForeignUnitPriceFUPMATH_NUMERICOPTNONE

The foreign price per unit.

mnAmtForeignUnitCostFUCMATH_NUMERICOPTNONE

Amount - Foreign Unit Cost

mnAmtListUnitPriceLPRCMATH_NUMERICOPTNONE

The list price in the unit of measure of the base price retrieved from the Base Price File (F4106).  This is the price the customer would pay if 
there were no price adjustments applied during Sales Order Entry.  This price is stated in domestic currency.

mnAmtForeignUnitListPriceFPRCMATH_NUMERICOPTNONE

The list price in the unit of measure of the base price retrieved from the Base Price File (F4106).  This is the price the customer would pay if 
there were no price adjustments applied during Sales Order Entry.  This price is stored in the customer's currency.

mnAmountPOCostECSTMATH_NUMERICOPTNONE

For accounts receivable and accounts payable, the invoice (gross) amount. For sales orders and purchase orders, the unit cost times the 
number of units.

mnAmountForeignPOCostFECMATH_NUMERICOPTNONE

The product of the cost of an item, expressed in foreign currency according to the orders exchange rate, times the number of units.

mnAmountPOUnitCostUNCSMATH_NUMERICOPTNONE

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

mnAmountForeignPOUnitCostFUCMATH_NUMERICOPTNONE

Amount - Foreign Unit Cost

Related Functions

None

Related Tables

None