RetailPromotionDiscount::GetPromotionPrice Method [AX 2012]

Gets the best price of the items for which the discount is applicable by comparing the original price with the discounted price.

server public static Price GetPromotionPrice(
    RetailStoreId _storeId, 
    ItemId _itemId, 
    Price _originalPrice)

Run On



Type: RetailStoreId Extended Data Type
The location to which the item belongs.
Type: ItemId Extended Data Type
The caller record Item ID.
Type: Price Extended Data Type
The original price of the item.

Return Value

Type: Price Extended Data Type
The best price after it applies the store-specific promotion on the original price.

This class updates the final price if the promotion price is lower.