MCRSalesOrderCancellation Class [AX 2012]
The MCRSalesOrderCancellation class cancels sales orders and sales order lines.
| Method | Description | |
|---|---|---|
| cancelLine | Cancels a sales line on a sales order. |
| cancelLineMiscCharges | Cancels miscellaneous charges for a given sales line. |
| cancelMiscCharges | Cancels miscellaneous charges on a sales order, when applicable.All miscellaneous charges are canceled when cancelling all un-picked quantities on a sales order, if no remaining lines exist with picked but not yet invoiced quantities. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| 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.) |
| isOrderCancellationAllowed | Checks if the entire order may be canceled. Will return true if cancellation for the entire order is allowed, otherwise false. |
| 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.) |
| postCancelAdjPayment | Adjusts the payment after an order was cancelled. |
| postCancelLine | Clears miscellaneous charges, adjusts coupons, and writes order events for the sales order line that was cancelled. |
| postCancelNSFPayment | Canceles the check payment. |
| postCancelOrder | Clears all hold codes, removes miscellaneous charges, adjusts coupons, and writes order events for the sales order that was cancelled. |
| preCancel | Calculates the payment total before the order is cancelled. |
| 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.) |
| ::cancelOrder | Cancels the specified sales order.All sales lines are canceled, and all hold codes are cleared. Payments are resubmitted for authorization, if applicable.Returns true if the order is successfully canceled. Returns false if an error occurs. |
| ::cancelOrderFTC | Cancels the specified sales order.Cancels the specified sales order for FTC processing. |
Community Additions
ADD
Show: