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.
| Method | Description | |
|---|---|---|
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| checkFields | Checks if the fields that affect totals amounts have been updated and sets the result in a class level variable. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| 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.) |
| 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. |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| 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.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::calculateAndUpdateTotalsSummary | Calculates or gets the totals for the purchase order and inserts the data in the PurchTotalsSummary table. |
| ::construct | Creates and returns an object of PurchTotalsSummaryController for the given purchase order id. |
| ::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. |
| ::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. |
| ::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 |
| ::onPostingSuccess | Invalidates the PurchEncumbranceSummary record if some document related to purchase orders is posted. |
| ::populateEncumbranceSummaryValues | Populates the PurchEncumbranceSummary record with encumbrance and relieving amounts for the purchase order. |
| ::setValidFlag | Sets the summary record's IsValid flag only if the new value is different from the one already stored. |
| ::updateTotals | Updates the totals or encumbrance amounts for the purchase order, if invalid, based on the table id passed. |
Community Additions
ADD
Show: