PdsComdPricingMarginUpdate.addPricingMarginLine Method [AX 2012]

Adds a line for the current pricing margin and template lines using the given cost.

protected void addPricingMarginLine(Amount _cost)

Run On

Called

Parameters

_cost
Type: Amount Extended Data Type
A computed cost for the pricing margin line.

This method will add a new line to PdsPricingMarginLine table using the current PdsPricingTemplateLine and PdsPricingMargin records. This calls the necessary methods to compute the margin and price on the PdsPricingMarginLine table and sets up any previous field values when the PdsPreviousMarginId value has been set.

Community Additions

ADD
Show: