PCRuntimePriceModelInstanceFactory.findPriceModelForOrderLine Method [AX 2012]

Finds a price model, which should be used based on currenct context

protected PcPriceModelRefRecId findPriceModelForOrderLine(
    RecId _sourceDocumentLineRecId, 
    PCProductConfigurationModel _productConfigurationModel, 
    TableId _orderLinetableId, 
    FieldId _orderLineRecId, 
   [date _orderdate])

Run On

Called

Parameters

_sourceDocumentLineRecId
Type: RecId Extended Data Type
A reference to the source order line.
_productConfigurationModel
Type: PCProductConfigurationModel Table
An instance of PCproductConfigurationModel table bufffer.
_orderLinetableId
Type: TableId Extended Data Type
A table ID of the order line buffer.
_orderLineRecId
Type: FieldId Extended Data Type
A field ID of the RecID field on the order line buffer
_orderdate
Type: date
A Date which is used to search for the valid price model criteria

Return Value

Type: PcPriceModelRefRecId Extended Data Type
A reference to price model.

Community Additions

ADD
Show: