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
Gg756208.pubmethod(en-us,AX.60).gif add
Gg756208.pubmethod(en-us,AX.60).gif addBOMCalcTrans
Gg756208.pubmethod(en-us,AX.60).gif addCostCalcTransData Adds the temporary calculation records from another CostCalcTransData object.
Gg756208.pubmethod(en-us,AX.60).gif addCostTmpCalcTrans
Gg756208.pubmethod(en-us,AX.60).gif addProdCalcTrans
Gg756208.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif getBOMCalcItem
Gg756208.pubmethod(en-us,AX.60).gif getConsumptionConstant Calculates the total constant consumption from the encapsulated temporary table.
Gg756208.pubmethod(en-us,AX.60).gif getConsumptionVariable Calculates the total variable consumption from the encapsulated temporary table.
Gg756208.pubmethod(en-us,AX.60).gif getContributionConstant
Gg756208.pubmethod(en-us,AX.60).gif getContributionVariable
Gg756208.pubmethod(en-us,AX.60).gif getCostFixed
Gg756208.pubmethod(en-us,AX.60).gif getCostTmpCalcTrans
Gg756208.pubmethod(en-us,AX.60).gif getCostTotal
Gg756208.pubmethod(en-us,AX.60).gif getCostVariable
Gg756208.pubmethod(en-us,AX.60).gif getInventSiteId
Gg756208.pubmethod(en-us,AX.60).gif getItemGroupId
Gg756208.pubmethod(en-us,AX.60).gif getItemId
Gg756208.pubmethod(en-us,AX.60).gif getLevel
Gg756208.pubmethod(en-us,AX.60).gif getQty
Gg756208.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif getTransDate
Gg756208.pubmethod(en-us,AX.60).gif getUnitID Returns the unit ID that is used in the enclosed CostTmpCalcTrans temporary table.
Gg756208.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif initCostCalcTransData
Gg756208.pubmethod(en-us,AX.60).gif isEmpty Determines whether the enclosed CostTmpCalcTrans temporary table is empty.
Gg756208.pubmethod(en-us,AX.60).gif key Generates a key to use to cache costing sheets for the different sets of input data.
Gg756208.protmethod(en-us,AX.60).gif new
Gg756208.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif setBOMCalcItem
Gg756208.pubmethod(en-us,AX.60).gif setInventSiteId
Gg756208.pubmethod(en-us,AX.60).gif setLevel
Gg756208.pubmethod(en-us,AX.60).gif setQty
Gg756208.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg756208.protmethod(en-us,AX.60).gif validateUnitId
Gg756208.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg756208.pubmethod(en-us,AX.60).gif Gg756208.static(en-us,AX.60).gif ::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