RetailPricingEngine Class [AX 2012]
The RetailPricingEngine class provides entry points to calculate Retail-specific prices. These prices are specific to a particular retail channel and allow AX the ability to calculate prices as they would be on the particular channel.
Syntax
class RetailPricingEngine
Run On
Called
Methods
Method | Description | |
---|---|---|
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.) | |
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.) | |
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.) | |
::calculateDiscounts | Deprecated.For given sales order, compute the retail discounts across all the lines.Returns the result in a mapping between each line's InvenTransId and a unit discount amount for the line. | |
::calculateDiscountsFromSalesLine | Computes the discount for sales line.Returns the result in a mapping between sales line's InvenTransId and a unit discount amount for the line. | |
::calculateIndependentPriceDiscounts | Calculate independent prices and discounts for a list of RetailPriceDiscountLine. | |
::calculateIndependentPriceDiscountsOnSvr | ||
::calculatePromotionPrice | Deprecated.Given original price, product, datetime, and channelinfo, find the adjusted retail price | |
::getActivePrice | Gets the active retail channel price for a given sales line and customer.This includes all the retail pricing logic, including channel price trade agreements, customer trade agreements, base price lookup, and retail price adjustments.Basic flow is: 1. Try to find trade agreement price for customer 2. If none, try to find trade agreement price for channel 3. If none, use the item's base price 4. Use price found above and feed into retail price adjustment search.This price is always less than or equal to the price found above | |
::getCacheKey | ||
::getOrderChannelId | Gets the channel record Id (if any) associated with the sales order | |
::getPriceForSalesLine | Deprecated.For a sales order line, calculate the price after retail price calculations (trade agreements and price adjustments).This will calculate based on the sales order's channel association. | |
::getRetailPriceByItem | Gets the active retail channel price for a given Item. | |
::isMCROrder | Return true if the sales order is MCR one. | |
::isMCRQuote | Return true if the sales quote is MCR one. | |
::setRetailDiscountsOnOrder | Deprecated.For given sales order, update the retail discount amounts on all the lines. | |
::useRetailPricing | Returns true if the sales line should have retail prices | |
::useRetailPricingEngineForSalesOrder | Check whether to use retail pricing engine for sales order. | |
::useRetailPricingEngineForSalesQuatation | Check whether to use retail pricing engine for sales quotation. |
Top
Remarks
This class will read all data from the AX database. So for parity between the channel and AX calculations, the same data will need to be available in both places.
Inheritance Hierarchy
Object Class
RetailPricingEngine Class