Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deprecated.
Given original price, product, datetime, and channelinfo, find the adjusted retail price
Syntax
client server public static Price calculatePromotionPrice(
Price _originalPrice,
RecId _channelId,
RecId _productId,
RecId _distinctProductVariantId,
UnitOfMeasureSymbol _uomSymbol,
utcdatetime _dateToCheck)
Run On
Called
Parameters
- _originalPrice
Type: Price Extended Data Type
The price before adjustments. This is the basis of "percent off" adjustments
- _channelId
Type: RecId Extended Data Type
The record Id of the channel to find price for
- _productId
Type: RecId Extended Data Type
The record Id of the product being adjusted
- _distinctProductVariantId
Type: RecId Extended Data Type
Optional. The record Id of the distinct variant being adjusted
- _uomSymbol
Type: UnitOfMeasureSymbol Extended Data Type
Unit of measure symbol used to match against price adjustment lines
- _dateToCheck
Type: utcdatetime
The date and time of the adjusted price
Return Value
Type: Price Extended Data Type
The price of the given product/variant after retail price adjustments