Share via


ProdUpdCostEstimation Class [AX 2012]

The ProdUpdCostEstimation class is used for calculating the estimation for a production order.

Syntax

class ProdUpdCostEstimation extends ProdUpd

Run On

Server

Methods

  Method Description
Gg862186.pubmethod(en-us,AX.60).gif addCreatedRec (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif addDeletedRec (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif addUpdateRec (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg862186.protmethod(en-us,AX.60).gif costEstimate Makes the estimation for a specific production order.
Gg862186.protmethod(en-us,AX.60).gif costEstimateItems
Gg862186.protmethod(en-us,AX.60).gif costEstimateOperations
Gg862186.pubmethod(en-us,AX.60).gif createdRecs (Inherited from UpdateBase.)
Gg862186.protmethod(en-us,AX.60).gif createKanban Creates one or more kanbans for a pegged supply BOM line, if the applicable kanban rule exists.
Gg862186.protmethod(en-us,AX.60).gif createProdBOM
Gg862186.protmethod(en-us,AX.60).gif createProdRoute Explodes the operations that are made on the phantom BOM onto the production route.
Gg862186.protmethod(en-us,AX.60).gif createProdTable
Gg862186.protmethod(en-us,AX.60).gif createPurchLine
Gg862186.protmethod(en-us,AX.60).gif createPurchTable Creates a new PurchTable record or retrieves the purchase ID of an existing one.
Gg862186.protmethod(en-us,AX.60).gif createSub Creates kanban, production, or purchase orders for the given BOM line if required.
Gg862186.pubmethod(en-us,AX.60).gif deletedRecs (Inherited from UpdateBase.)
Gg862186.protmethod(en-us,AX.60).gif endUpdateProduction
Gg862186.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg862186.protmethod(en-us,AX.60).gif expandBOMRoute
Gg862186.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif initProdTable Initializes the prodTable variable with a value from the parameter table. (Inherited from ProdUpd.)
Gg862186.pubmethod(en-us,AX.60).gif mergeCreatedRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif mergeDeletedRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif mergeRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif mergeUpdateRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif new Initializes a new instance of the UpdateBase class. (Inherited from UpdateBase.)
Gg862186.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.)
Gg862186.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.)
Gg862186.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif packCreatedRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif parmParmBuffer Gets or sets the ParmBuffer parameter. (Overrides the parmParmBuffer Method.)
Gg862186.pubmethod(en-us,AX.60).gif parmProdPurch Gets or sets the ProdPurch parameter.
Gg862186.privmethod(en-us,AX.60).gif pdsCheckApprovedVendorList Method calls PdsApprovedVendorList class and returns if the vendor set in item master is valid if production order is of type Vendor.
Gg862186.protmethod(en-us,AX.60).gif pmfCostEstimateCoBys Estimation of batch order related coby products.
Gg862186.protmethod(en-us,AX.60).gif pmfCreateCoBySub Launches creation of batch order coby product sub orders.
Gg862186.protmethod(en-us,AX.60).gif pmfCreateSubProdTable Creates a batch order coby product sub orders.
Gg862186.protmethod(en-us,AX.60).gif pmfUpdateCoBySub Updates batch order coby product suborders.
Gg862186.protmethod(en-us,AX.60).gif pmfUpdateCoBySubProdTable Updates batch order coby product production/batch suborders.
Gg862186.protmethod(en-us,AX.60).gif pmfUpdateCoBySubPurchLine Updates the batch order's co/by product purchase orders when estimating.
Gg862186.protmethod(en-us,AX.60).gif prodPurch Retrieves or initializes the ProdPurch class variable.
Gg862186.pubmethod(en-us,AX.60).gif prodTable Returns the value of the prodTable variable, specifying which production order will be updated. (Inherited from ProdUpd.)
Gg862186.pubmethod(en-us,AX.60).gif projCostControlUpdate
Gg862186.pubmethod(en-us,AX.60).gif run Runs the estimation. (Overrides the run Method.)
Gg862186.protmethod(en-us,AX.60).gif setBOMRawMaterialDate Sets the scheduled dates and times for the raw materials as estimated during production.
Gg862186.protmethod(en-us,AX.60).gif setItemConsumption
Gg862186.protmethod(en-us,AX.60).gif setParameters
Gg862186.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif updatedRecs (Inherited from UpdateBase.)
Gg862186.pubmethod(en-us,AX.60).gif updateJobJournal (Inherited from UpdateBase.)
Gg862186.protmethod(en-us,AX.60).gif updateSub
Gg862186.protmethod(en-us,AX.60).gif updateSubProdTable
Gg862186.protmethod(en-us,AX.60).gif updateSubPurchLine
Gg862186.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.)
Gg862186.pubmethod(en-us,AX.60).gif validate Method runs normal validation and runs Approved Vendor List validation of Production order and corresponding Production BOM (Overrides the validate Method.)
Gg862186.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg862186.pubmethod(en-us,AX.60).gif Gg862186.static(en-us,AX.60).gif ::construct
Gg862186.pubmethod(en-us,AX.60).gif Gg862186.static(en-us,AX.60).gif ::initParmBufferFromSched
Gg862186.pubmethod(en-us,AX.60).gif Gg862186.static(en-us,AX.60).gif ::newParmBuffer
Gg862186.pubmethod(en-us,AX.60).gif Gg862186.static(en-us,AX.60).gif ::newProdId

Top

Remarks

By using this class, you can make the estimation for a single production order or for a whole chain of production orders which are related to each other by references. When the References parameter is set to the NoYes::Yes enumeration value, all production orders which are related to the same main production will be estimated.When the References parameter is set to the NoYes::No enumeration value, only the selected production order will be estimated.

Examples

void estimateProduction(ProdId _prodId, NoYes _references) 
{ 
    ProdUpdCostEstimation prodUpdEstimation; 
 
    prodUpdEstimation = ProdUpdCostEstimation::newProdId( 
        _prodId, 
        ProdParameters::find().profitSet, 
        _references); 
    prodUpdEstimation.run(); 
}

Inheritance Hierarchy

Object Class
  UpdateBase Class
    ProdUpd Class
      ProdUpdCostEstimation Class

See Also

ProdUpdBOMCalc Class