PurchCalcItem::newBOM Method [AX 2012]

Creates and initializes an instance of the PurchCalcItem class by using a line in a bill of materials.

server public static PurchCalcItem newBOM(
    BOM _bom, 
    Qty _consumptionQty, 
    BOMCalcItem _parentBomCalcItem)

Run On

Server

Parameters

_bom
Type: BOM Table
The bill of materials to use for initialization.
_consumptionQty
Type: Qty Extended Data Type
The consumed quantity.
_parentBomCalcItem
Type: BOMCalcItem Class
An instance of the BOMCalcItem class on the level above.

Return Value

Type: PurchCalcItem Class
The new PurchCalcItem object.
Show: