PriceDisc::newFromSalesPurchLine Method [AX 2012]

Constructs a new PriceDisc object for specified line object.

server public static PriceDisc newFromSalesPurchLine(
    SalesPurchLine _salesPurchLine, 
   [InventDim _inventDim, 
    TransDate _discDate])

Run On

Server

Parameters

_salesPurchLine
Type: SalesPurchLine Map
The line for which to construct the PriceDisc object.
_inventDim
Type: InventDim Table
The inventory dimension for which to construct the PriceDisc object.
_discDate
Type: TransDate Extended Data Type
The date for which to construct the PriceDisc object.

Return Value

Type: PriceDisc Class
The PriceDisc object constructed for specified parameters.
Show: