BOMCalcCheckIndirectCost.checkNoCostPrice Method [AX 2012]
Generates a warning if no indirect cost factor is found.
public void checkNoCostPrice( CostSheetNodeCode _calculationNodeCode, boolean _costPricePresent, [str _strText, Exception _exceptionType])
Type: CostSheetNodeCode Extended Data Type
Type: Exception Enumeration
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.