BOMCalcCheckIndirectCost.checkUseFallBack Method [AX 2012]
Generates a warning if an indirect cost factor was supplied by a costing version that was specified as a fallback version.
Syntax
public void checkUseFallBack(CostSheetNodeCode _calculationNodeCode, CostingVersionId _fallbackVersionId)
Run On
Called
Parameters
- _calculationNodeCode
Type: CostSheetNodeCode Extended Data Type
- _fallbackVersionId
Type: CostingVersionId Extended Data Type
Remarks
Note, that this method clears Infolog after each use, and that messages get accumulated in a class member variable.
This is because 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 of the errors would get assigned to the BOMCalcTrans that corresponds to the first indirect cost code in the costing sheet.