ReqTrans::findPriceDiscTable Method
Finds a purchase trade agreement for a specific item.
Syntax
server public static PriceDiscTable findPriceDiscTable(
ItemId _itemId,
InventDimId _inventDimId,
Qty _qty,
TransDate _transDate,
ReqSearchTradeMethod _searchTradeMethod,
[ReqSetup _reqSetup])
Run On
Server
Parameters
- _itemId
Type: ItemId Extended Data Type
The ID of the item for which to search.
- _inventDimId
Type: InventDimId Extended Data Type
The inventory dimension for which to search.
- _qty
Type: Qty Extended Data Type
The quantity of items for which to search.
- _transDate
Type: TransDate Extended Data Type
The date for which the found trade agreements must be active.
- _searchTradeMethod
Type: ReqSearchTradeMethod Enumeration
The method that prioritizes the search results.
- _reqSetup
Type: ReqSetup Class
The item setup; optional.
Return Value
Type: PriceDiscTable Table
A record of a purchase trade agreement that matches the search criteria.