ProdStatusType_Completed.runBOMCalc Method [AX 2012]

Performs a price calculation of a completed production order.

public boolean runBOMCalc(
    ProdParmBOMCalc _prodParmBOMCalc, 
   [boolean _ask, 
    RunbaseRecsMapable _multi])

Run On

Called

Parameters

_prodParmBOMCalc
Type: ProdParmBOMCalc Table
The production bill of materials calculation parameter. This parameter is disregarded by the method.
_ask
Type: boolean
A Boolean value that indicates whether the method is only asked if cost estimation is allowed; optional.
_multi
Type: RunbaseRecsMapable Interface
A RunbaseRecsMapable parameter. This parameter is disregarded by the method; optional.

Return Value

Type: boolean
false if the _ask parameter is true; otherwise, throws an exception.

ExceptionCondition
Error

A completed production order does not allow price calculation.

When a price calculation is being performed for a completed production order, this method always throws an exception, because as soon as the production order is completed, price calculation is no longer allowed.

Community Additions

ADD
Show: