Share via


CatCartLine.initPrice Method

Sets the LineAmount field of the line to the value that is calculated by using the PriceDisc class and other field data of the line as input.

Syntax

public void initPrice([ItemId _itemId, InventDimId _inventDimId])

Run On

Called

Parameters

  • _inventDimId
    Type: InventDimId Extended Data Type
    The InventDimId that matches the PriceDiscTable record that is based on the choice of vendor and dimension of the user.

Remarks

If the value for the _itemId parameter is supplied, the caller must make sure that value matches the line data; it will be calculated using data of the specified line.

If there is no PriceDiscTable record specified, then the _inventDimId is required to match the InventDimCombination instead; optional. If not supplied, it would be calculated using data of the given line; otherwise, If supplied, caller must make sure that it matches the line data.

See Also

Reference

CatCartLine Table