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
ServerParameters
- _storeId
- Type: RetailStoreId Extended Data Type
The location to which the item belongs.
- _itemId
- Type: ItemId Extended Data Type
The caller record Item ID.
- _originalPrice
- Type: Price Extended Data Type
The original price of the item.
Return Value
Type: Price Extended Data TypeThe best price after it applies the store-specific promotion on the original price.
Show: