MCRCouponTrans Class [AX 2012]
The MCRCouponTrans class performs coupon related functions including validating coupons, creating misc charges for coupons, and deleting coupons.
| Method | Description | |
|---|---|---|
| calcCouponAmount | Calculates the coupon amount and returns the value. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| deleteMarkupTrans | Delete the markup records associated with coupons. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| existCouponCatalog | Checks whether a coupon exists in a catalog. |
| existCouponItem | Checks whether an item matches a coupon criteria. |
| 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 | 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.) |
| parmSalesTable | Gets or sets the SalesTable parameter. |
| 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.) |
| validateCoupon | Validate the coupon and if it can be applied to the sales order. |
| validateCouponCatalog | Validate the coupon and if it can be applied based on the catalog on the sales order. |
| validateCouponCustSpecific | Validates the customer of sales order against the coupon if the coupon is customer specific. |
| validateCouponDate | Validates whether the sales order requested ship date is valid for a the from and to date of a coupon. |
| validateCouponExclusive | Validates that if a sales order has multiple coupons, that none of the coupons are exclusive. |
| validateCouponItem | Validate the coupon and if it can be applied based on the item on the sales line. |
| validateCouponOneTimeUse | Validates that if a coupon is a one time use coupon that it has not already been used by another sales order. |
| wait | Pauses a process. (Inherited from Object.) |
| writeMarkUpTrans | Write the coupon markup charge. |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
Community Additions
ADD
Show: