PurchTotalsSummaryController Class [AX 2012]

The PurchTotalsSummaryController class is responsible for calculating and storing purchase order totals and encumbrance summary amounts in the PurchTotalsSummary and PurchEncumbranceSummary tables respectively.

class PurchTotalsSummaryController

Run On

Called

  MethodDescription
Hh822947.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif checkFields Checks if the fields that affect totals amounts have been updated and sets the result in a class level variable.
Hh822947.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Hh822947.privmethod(en-us,AX.60).gif new
Hh822947.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.)
Hh822947.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.)
Hh822947.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif onUpdate This method will invalidate the totals record if it was marked to be invalidated from the checkFields() and then notifies the calling datasource about the invalid totals record.This method gets called after the update() is called on the table.
Hh822947.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Hh822947.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.)
Hh822947.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::calculateAndUpdateTotalsSummary Calculates or gets the totals for the purchase order and inserts the data in the PurchTotalsSummary table.
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::construct Creates and returns an object of PurchTotalsSummaryController for the given purchase order id.
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::invalidateEncumbranceSummaryRecord Sets the isValid field of the PurchEncumbranceSummary table to false so that the next time the updateTotals method is called the table will be updated.
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::onDelete Checks the table buffer to see from which table record was deleted, If a record is deleted from a table which affects totals then the totals record is invalidated.
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::onInsert Checks the table buffer to see in which table record was inserted.If a record is inserted in PurchTable then records in totals tables are created, otherwise records are invalidated if the insertion is in some other table that affects totals
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::onPostingSuccess Invalidates the PurchEncumbranceSummary record if some document related to purchase orders is posted.
Hh822947.privmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::populateEncumbranceSummaryValues Populates the PurchEncumbranceSummary record with encumbrance and relieving amounts for the purchase order.
Hh822947.privmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::setValidFlag Sets the summary record's IsValid flag only if the new value is different from the one already stored.
Hh822947.pubmethod(en-us,AX.60).gif Hh822947.static(en-us,AX.60).gif ::updateTotals Updates the totals or encumbrance amounts for the purchase order, if invalid, based on the table id passed.
Top

These amounts are displayed on purchase order details and list pages in factboxes

Object Class
  PurchTotalsSummaryController Class

Community Additions

ADD
Show: