TrvReceiptsHelper Class [AX 2012]
| Method | Description | |
|---|---|---|
| attachEmployeeDocumentsToExpenseReport | Attaches files to the DocuRef table and the DocValue table for the appropriate TrvExpTable record. |
| attachFileToEmployee | Attaches a receipt to an employee. |
| attachFileToExpenseReport | Attaches file to the TrvExpTable record. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| detachDocument | Moves receipts attached to expense report to an unreconciled expense record. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| generateThumbnail | Generates a thumbnail of the specified type. |
| getDocuTypeId | Gets or sets the document type ID for an expense report attachment. |
| getReceiptsAvailableForLinking | Gets the available receipts for linking to the specified expense line. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| isDocumentAttachedToExpenseReport | Indicates whether there are any receipts attached to the specified expense report. |
| linkDocumentsToTransaction | |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| 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.) |
| 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.) |
| unlinkDocumentToTransaction | Removes the link between the expense report attachment document and expense report line. |
| 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.) |
| ::attachDocumentsToExpenseLine | Moves attachments from the unreconciled expense transaction to the expense report and links attachments to an expense line. |
| ::createUnreconciledExpenseAsUser | Creates an unreconciled expense transaction as an impersonated user. |
| ::detachDocumentsFromExpenseLine | Moves attachments from the expense report to the unreconciled expense transaction, and removes attachment links to an expense line. |
| ::existAvailableReceipts | Indicates whether a worker has unreconciled transactions with documents that are attached to an expense report. |
| ::existsDocumentLinkedToTransaction | Indicates whether there are expense receipts linked to an expense line. |
| ::findOrCreateUnreconciledExpense | Finds a TrvUnreconciledExpenseTransaction record for a worker and creates a record if one does not exist. |
| ::linkDocumentToTransaction | Creates a link between an attachment and an expense report transaction. |
| ::validateTrvUnreconciledRecord | Validates the values of the TrvUnreconciledExpenseRecord class. |
Community Additions
ADD
Show: