PDSPriceEstablisher::averageAdjustedUnitPriceOnServer Method [AX 2012]

Gets the average adjusted unit price.

server protected static PDSCalculatedUnitPrice averageAdjustedUnitPriceOnServer(
    PDSCalculableOrderMap _calculableOrderMap, 
   [Common _baseBuffer, 
    PDSPriceEstablisherFactory _factory])

Run On

Server

Parameters

_calculableOrderMap
Type: PDSCalculableOrderMap Map
Table map representing one of the pricing calculation extension tables.
_baseBuffer
Type: Common Table
A buffer containing the source record associated with _calculableOrderMap.
_factory
Type: PDSPriceEstablisherFactory Class
A factory that actually constructs a PDSPriceEstablisher derived object.

Return Value

Type: PDSCalculatedUnitPrice Extended Data Type
The average adjusted unit price.

Use the parameter _baseBuffer only when the source record ID specified by _calculableOrderMap_calculableOrderMap is not yet found in the database such as when a record ID is preallocated and the record is not yet saved to the database.

Show: