CalculateLotCostGainLoss

Calculate Lot Cost Gain/Loss

Minor Business Rule

Object Name: B31B9310

Parent DLL: CWIM

Location: Client/Server

Language: C

Data Structure

D31B9310A - Calculate Lot Cost Gain/Loss

Parameter NameData ItemData TypeReq/OptI/O/Both
cModeEV01charOPTNONE

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

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.

SuppressErrorMessageEV01charOPTNONE

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

cErrorCodeEV01charOPTNONE

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

mnJobNumberJOBSMATH_NUMERICOPTNONE

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

nOperationIDWOPIDintegerOPTNONE

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.

szBlendLotNumberWLOTNcharOPTNONE

A number that identifies a Blend Lot.  A lot is a group of items with similar characteristics.

szCostComponentWCOSTcharOPTNONE

A user-defined code identifying a cost bucket within a winery operation.  Individual rates defined for a Cost Group are summarized by Cost 
Component.  Lots are costed at the Cost Component level.  A rate is defined as a cost per unit or cost per unit per period of time. 

mnComponentUnitCostUNCSMATH_NUMERICOPTNONE

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

mnComponentTotalCostAAMATH_NUMERICOPTNONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

nConfiguredOperationIDWCFGIDintegerOPTNONE

A unique identifier that identifies the Configured Operation.

cSurveyGainLossFlagWSGLFcharOPTNONE

A field that denotes which Operational Costing method will be used to account for Survey Gains and Losses.  Valid values are: 0 Adjust 
Proportionally  1 Expense  2 Cost Component If the Cost Component method is selected, a cost component must be entered. 

cOperationGainLossFlagWOGLFcharOPTNONE

A field that denotes which Operational Costing method will be used to account for Operation Gains and Losses.  Valid values are: 0 Adjust 
Proportionally  1 Expense 2 Cost Component If the Cost Component method is selected, a cost component must be entered. 

szSurveyCostComponentWSCOSTcharOPTNONE

A user-defined code identifying a cost bucket for survey gains/losses within a winery operation.  Individual rates defined for a Cost Group 
are summarized by Cost Component.  Lots are costed at the Cost Component level.  A rate is defined as a cost per unit or cost per unit per 
period of time. 

szOperationCostComponentWOCOSTcharOPTNONE

A user-defined code identifying a cost bucket for operation gains/losses within a winery operation.  Individual rates defined for a Cost 
Group are summarized by Cost Component.  Lots are costed at the Cost Component level.  A rate is defined as a cost per unit, or cost per unit per 
period of time. 

mnBlendLotQuantityLTQNTYMATH_NUMERICOPTNONE

Quantity of a Blend Lot.

mnSurveyGainVolumeSRVGAVMATH_NUMERICOPTNONE

Operation Survey Gain Volume.

mnOperationGainQuantityOPRGAVMATH_NUMERICOPTNONE

Quantity of Blend Lot Gained as a result of an operation.

mnBlendLotUnitCostUNCSMATH_NUMERICOPTNONE

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

mnTotalLotCostAAMATH_NUMERICOPTNONE

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

cFromToFlagWFTFcharOPTNONE

A flag that specifies the vessel as either the From or To vessel in a Blend Operation.

szSurveyUOMLTUOMcharOPTNONE

Unit of Measure of a Blend Lot.

Related Functions

None

Related Tables

None