MCRSalesOrderCancellation Class [AX 2012]

The MCRSalesOrderCancellation class cancels sales orders and sales order lines.

class MCRSalesOrderCancellation

Run On

Called

  MethodDescription
Dn691031.protmethod(en-us,AX.60).gif cancelLine Cancels a sales line on a sales order.
Dn691031.protmethod(en-us,AX.60).gif cancelLineMiscCharges Cancels miscellaneous charges for a given sales line.
Dn691031.protmethod(en-us,AX.60).gif 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.
Dn691031.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Dn691031.protmethod(en-us,AX.60).gif isOrderCancellationAllowed Checks if the entire order may be canceled. Will return true if cancellation for the entire order is allowed, otherwise false.
Dn691031.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Inherited from Object.)
Dn691031.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.)
Dn691031.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.)
Dn691031.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif postCancelAdjPayment Adjusts the payment after an order was cancelled.
Dn691031.pubmethod(en-us,AX.60).gif postCancelLine Clears miscellaneous charges, adjusts coupons, and writes order events for the sales order line that was cancelled.
Dn691031.privmethod(en-us,AX.60).gif postCancelNSFPayment Canceles the check payment.
Dn691031.pubmethod(en-us,AX.60).gif postCancelOrder Clears all hold codes, removes miscellaneous charges, adjusts coupons, and writes order events for the sales order that was cancelled.
Dn691031.pubmethod(en-us,AX.60).gif preCancel Calculates the payment total before the order is cancelled.
Dn691031.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Dn691031.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.)
Dn691031.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Dn691031.pubmethod(en-us,AX.60).gif Dn691031.static(en-us,AX.60).gif ::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.
Dn691031.pubmethod(en-us,AX.60).gif Dn691031.static(en-us,AX.60).gif ::cancelOrderFTC Cancels the specified sales order.Cancels the specified sales order for FTC processing.
Top

Object Class
  MCRSalesOrderCancellation Class

Community Additions

ADD
Show: