ProdUpdBOMCalc Class [AX 2012]

The ProdUpdBOMCalc class is used for making the estimated price calculation for production orders.

class ProdUpdBOMCalc extends ProdUpd

Run On

Server

  MethodDescription
Gg862168.pubmethod(en-us,AX.60).gif addCreatedRec (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif addDeletedRec (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif addUpdateRec (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif createdRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif deletedRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif initProdTable Initializes the prodTable variable with a value from the parameter table. (Inherited from ProdUpd.)
Gg862168.pubmethod(en-us,AX.60).gif mergeCreatedRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif mergeDeletedRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif mergeRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif mergeUpdateRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif new Initializes a new instance of the UpdateBase class. (Inherited from UpdateBase.)
Gg862168.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.)
Gg862168.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.)
Gg862168.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif packCreatedRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif parmParmBuffer Gets or sets the ProdParmBOMCalc record. (Overrides the parmParmBuffer Method.)
Gg862168.pubmethod(en-us,AX.60).gif prodTable Returns the value of the prodTable variable, specifying which production order will be updated. (Inherited from ProdUpd.)
Gg862168.pubmethod(en-us,AX.60).gif run Used for the start of price calculation. (Overrides the run Method.)
Gg862168.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif updatedRecs (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif updateJobJournal (Inherited from UpdateBase.)
Gg862168.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.)
Gg862168.pubmethod(en-us,AX.60).gif validate (Inherited from UpdateBase.)
Gg862168.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg862168.pubmethod(en-us,AX.60).gif Gg862168.static(en-us,AX.60).gif ::construct Initializes a new instance of the ProdUpdBOMCalc class.
Gg862168.pubmethod(en-us,AX.60).gif Gg862168.static(en-us,AX.60).gif ::newParmBuffer Creates a new instance of ProdUpdBOMCalc class, and initializes it with parameters from ProdParmBOMCalc table.
Gg862168.pubmethod(en-us,AX.60).gif Gg862168.static(en-us,AX.60).gif ::newProdTable Creates a new instance of the ProdUpdBOMCalc class, and initializes it with given parameters.
Top

You can run the price calculation for a single production order, or for a whole chain of production orders that are related to each other by references. You cannot use this class for realized price calculation. Realized price calculation will be performed automatically when production journals are posted, or production End for the ProdMultiHistoricalCost is started.

boolean runProdPriceCalc(ProdTable _prodTable, NoYes references = NoYes::Yes) 
{ 
    try 
    { 
        // If References is set to 'Yes', the price calculation will be  
        // done for all production orders which are related to each  
        // other and have status more than 'Created'. 
        // If References is set to 'No', price calculation will be done  
        // the only for current production order if it has status more  
        // than 'Created'. 
        if(_prodTable) 
            ProdUpdBOMCalc::newProdTable( 
                _prodTable,  
                ProdParameters::find().profitSet,  
                systemdateGet(),  
                references).run(); 
        else 
            throw error("ProdTable has been not initialized"); 
     } 
    catch (Exception::Error) 
    { 
        return false; 
    } 
    return true; 
}

Object Class
  UpdateBase Class
    ProdUpd Class
      ProdUpdBOMCalc Class

Community Additions

ADD
Show: