Share via


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
JJ802141.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Inherited from Object.)
JJ802141.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.)
JJ802141.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.)
JJ802141.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
JJ802141.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.)
JJ802141.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::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.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::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.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::calculateIndependentPriceDiscounts Calculate independent prices and discounts for a list of RetailPriceDiscountLine.
JJ802141.privmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::calculateIndependentPriceDiscountsOnSvr
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::calculatePromotionPrice Deprecated.Given original price, product, datetime, and channelinfo, find the adjusted retail price
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::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
JJ802141.privmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::getCacheKey
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::getOrderChannelId Gets the channel record Id (if any) associated with the sales order
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::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.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::getRetailPriceByItem Gets the active retail channel price for a given Item.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::isMCROrder Return true if the sales order is MCR one.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::isMCRQuote Return true if the sales quote is MCR one.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::setRetailDiscountsOnOrder Deprecated.For given sales order, update the retail discount amounts on all the lines.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::useRetailPricing Returns true if the sales line should have retail prices
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::useRetailPricingEngineForSalesOrder Check whether to use retail pricing engine for sales order.
JJ802141.pubmethod(en-us,AX.60).gif JJ802141.static(en-us,AX.60).gif ::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