VersioningPurchaseOrder Class [AX 2012]
The VersioningPurchaseOrder class is used to implement a purchase order versioning state model.
| Method | Description | |
|---|---|---|
| approveChangeRequest | Approves the current purchase order version. (Overrides the approveChangeRequest Method.) |
| archiveAgreementLineReleasedLine | Copies the AgreementLineReleasedLine records that belong to the purchase order and that are marked as modified to the history table. |
| archiveCurrentVersion | Copies all the changed records of the purchase order to the history tables. (Overrides the archiveCurrentVersion Method.) |
| archiveMarkupTrans | Copies all the MarkupTrans records that belong to the purchase order and are marked as modified to the history table. |
| archiveOnDemand | Archives current version. (Inherited from VersioningDocument.) |
| archivePurchDeliverySchedule | Copies the PurchDeliverySchedule records that belong to the purchase order and are marked as modified to the history table. |
| archivePurchLine | Copies all the PurchLine records that belong to the purchase order and are marked as modified to the history table. |
| archivePurchLineForeignTradeCategory | Copies the PurchLineForeignTradeCategory records that belong to the purchase order and are marked as modified to the history table. |
| archivePurchPrepayTable | Copies the PurchPrepayTable record that is related to the purchase order to the history table if it is marked as modified. |
| archivePurchTable | Copies the PurchTable record that represents the purchase order to the history table if it is marked as modified. |
| archiveTax1099BoxDetail | Copies the Tax1099BoxDetail table record that represents the purchase order to the history table when it is marked as modified. |
| archiveVendPaymSched | Copies the VendPaymSched record that is related to the purchase order to the history table if it is marked as modified. |
| archiveVendPaymSchedLine | Copies the VendPaymSchedLine records that are related to the purchase order and are marked as modified to the history table. |
| cancelChangeRequest | Cancels the current change request. (Inherited from VersioningDocument.) |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| canChangeBeRequested | Determines whether a change request can be created. (Inherited from VersioningDocument.) |
| change | Adjusts document state after a change to its record. (Overrides the change Method.) |
| close | Finalizes current document version. (Inherited from VersioningDocument.) |
| confirm | Confirms the current purchase order version. (Overrides the confirm Method.) |
| createApprovedVersion | Creates an approved version of the document. (Inherited from VersioningDocument.) |
| createChangeRequest | Creates a new change request for the purchase order. (Overrides the createChangeRequest Method.) |
| createNewVersion | Creates a new version record. (Overrides the createNewVersion Method.) |
| delete | Deletes the document. (Inherited from VersioningDocument.) |
| doesHistoryExist | Determines whether the purchase order has ever been copied to the history tables. (Overrides the doesHistoryExist Method.) |
| doMarkupTransChangesRequireConfirmation | |
| doPurchTableChangesRequireConfirmation | |
| editableInWorkflow | Returns if this VersioningPurchaseOrder is in an editable workflow. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getDocumentState | Retrieves the state of the current purchase order version. (Overrides the getDocumentState Method.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| initiate | Initiates the initial document version. (Inherited from VersioningDocument.) |
| isChangeConfirmationRequired | Indicates whether a change to a record will require a purchase order confirmation. (Overrides the isChangeConfirmationRequired Method.) |
| isChangeRequestRequired | Determines whether change request for the purchase order is required. (Overrides the isChangeRequestRequired Method.) |
| isLastVersionArchived | Checks if the last version was archived in the history tables. (Overrides the isLastVersionArchived Method.) |
| markModified | Marks PurchTable record as modified by setting IsModifed to Yes when a document state is changed because a change to the record will require document confirmation. (Overrides the markModified Method.) |
| new | Initializes a new instance of the VersioningPurchaseOrder class. |
| 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.) |
| parmPurchTable | Gets or sets the PurchTable parameter. |
| parmSkipChangeRequest | Gets or sets the SkipChangeRequest parameter. |
| parmSkipUpdatePurchTable | Gets or sets the SkipUpdatePurchTable parameter. |
| rejectChangeRequest | Rejects the current change request. (Inherited from VersioningDocument.) |
| restorePreviousVersion | Restores the previous purchase order version from the history tables. |
| restoreTax1099BoxDetail | Restores Tax1099BoxDetail records of the purchase order to their earlier versions from the history table. |
| reSubmitChangeRequest | Resubmits the current document version for approval. (Inherited from VersioningDocument.) |
| sendToVendor | Updates the current purchase order version, setting Document state to InExternalReview enum value. (Overrides the sendToVendor Method.) |
| setDocumentState | Sets the document state of the purchase order. (Overrides the setDocumentState Method.) |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| submitChangeRequest | Submits the current document version for approval. (Inherited from VersioningDocument.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| updatePurchLineHistoryValidTo | Updates ValidTo field for effective PurchLineHistory table records. |
| 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.) |
| ::archivedTables | Retrieves a set of tables that will be archived. |
| ::archiveTable2Table | Retrieves the table ID of a table that is archived. |
| ::checkCanChangeBeRequested | Determines whether a change request can be created. |
| ::checkHistoryExist | Determines whether a purchase order has been copied to the history tables. |
| ::construct | Initializes a new instance of the VersioningPurchaseOrder class. |
| ::doesHistoryExistCacheInsert | Creates cache entry which indicates that PurchTableVersion exists for specified purchase order. |
| ::doesHistoryExistCacheRemove | Removes the cached return value of doesHistoryExist method from the SysGlobalObjectCache by specifying the corresponding purchase order. |
| ::doesHistoryExistCacheScope | Generates the GlobalObjectCacheScope used for caching the return value of the doesHistoryExist method. |
| ::doesHistoryExistRunOnServer | Determines whether the purchase order has ever been copied to the history tables. |
| ::main | Provides an entry point for the VersioningPurchaseOrder class when it is called from a command. |
| ::newPurchaseOrder | Constructs VersioningPurchaseOrder object for a purchase order. |
Community Additions
ADD
Show: