BOMCalcCheckIndirectCost.checkNoCostPrice Method [AX 2012]

Generates a warning if no indirect cost factor is found.

Syntax

public void checkNoCostPrice(
    CostSheetNodeCode _calculationNodeCode, 
    boolean _costPricePresent, 
   [str _strText, 
    Exception _exceptionType])

Run On

Called

Parameters

  • _strText
    Type: str

Remarks

Note, that this method clears Infolog after each use, and the messages get accumulated in a class member variable.

This is due to the fact that a costing sheet is calculated first, and then the BOM calculation runs through all of the indirect cost codes and generates a BOMCalcTrans table. If the Infolog was not cleared in time, all errors would get assigned to the BOMCalcTrans table that corresponds to the first indirect cost code in the costing sheet.

See Also

Reference

BOMCalcCheckIndirectCost Class