Share via


CatCartLine::calculateUnitPriceForDistinctProduct Method

Gets the unit price for the specified cart line by using its field data.

Syntax

client server private static PriceCur calculateUnitPriceForDistinctProduct(
    CatCartLine _cartLine, 
    ItemId _itemId, 
    InventDimId _inventDimId)

Run On

Called

Parameters

  • _cartLine
    Type: CatCartLine Table
    The CatCartLine record for which to get the unit price.
  • _inventDimId
    Type: InventDimId Extended Data Type
    The InventDimId value that matches the trade agreement PriceDiscTable record that is based on the vendor that is specified by the user and dimension; optional.

Return Value

Type: PriceCur Extended Data Type
The unit price that is calculated from trade agreements using information that is stored on the given cart line object.

Remarks

If there is no PriceDiscTable record, then this should match the InventDimCombination record instead.

See Also

Reference

CatCartLine Table