CostCalcTransData Class [AX 2012]
The CostCalcTransData class encapsulates the data that is primarily used as input for a costing sheet calculation.
Syntax
class CostCalcTransData
Run On
Called
Methods
Method | Description | |
---|---|---|
add | ||
addBOMCalcTrans | ||
addCostCalcTransData | Adds the temporary calculation records from another CostCalcTransData object. | |
addCostTmpCalcTrans | ||
addProdCalcTrans | ||
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getBOMCalcItem | ||
getConsumptionConstant | Calculates the total constant consumption from the encapsulated temporary table. | |
getConsumptionVariable | Calculates the total variable consumption from the encapsulated temporary table. | |
getContributionConstant | ||
getContributionVariable | ||
getCostFixed | ||
getCostTmpCalcTrans | ||
getCostTotal | ||
getCostVariable | ||
getInventSiteId | ||
getItemGroupId | ||
getItemId | ||
getLevel | ||
getQty | ||
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
getTransDate | ||
getUnitID | Returns the unit ID that is used in the enclosed CostTmpCalcTrans temporary table. | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
initCostCalcTransData | ||
isEmpty | Determines whether the enclosed CostTmpCalcTrans temporary table is empty. | |
key | Generates a key to use to cache costing sheets for the different sets of input data. | |
new | ||
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
setBOMCalcItem | ||
setInventSiteId | ||
setLevel | ||
setQty | ||
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
validateUnitId | ||
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::construct |
Top
Remarks
Member variables are as follows:
The costTmpCalcTrans table buffer is a temporary table that contains transaction data. Each transaction has a cost group, contribution, consumption, level, and so on.
The Item ID is the ID of the produced item. This will surface when there are some overhead calculation factors, which are specific for a particular item group or item ID.
The qty value is the quantity of produced items. This variable is used when costing sheet calculation results are displayed on "Costing sheet" tabs in the BOM calculation and Production Order result forms. All amounts will be divided by this value when "Per" equals "Unit".
The transDate value is the date for which overhead costs are calculated.
The level value is a level that is considered as the first level for calculating surcharges of Level, Sublevel, and Total subtypes.
The inventSiteId value is the site ID for which to calculate indirect costs.
The bomCalcItem object is a reference to a BOMCalcItem object. It is used only when BOM calculation is run so that fallback may be used when the factor to use is determined.
Inheritance Hierarchy
Object Class
CostCalcTransData Class