private void addBOMLines(MProduct product,BigDecimal qty){
  MPPProductBOM bom=MPPProductBOM.getDefault(product,null);
  MPPProductBOMLine[] bomLines=bom.getLines(true);
  for (int i=0; i < bomLines.length; i++)   addBOMLine(bomLines[i],qty);
  log.fine("#" + bomLines.length);
}

private void addBOMLines ( MProduct product , BigDecimal qty ) { MPPProductBOM bom = MPPProductBOM . getDefault ( product , null ) ; MPPProductBOMLine [ ] bomLines = bom . getLines ( true ) ; for ( int i = 0 ; i < bomLines . length ; i ++ ) addBOMLine ( bomLines [ i ] , qty ) ; log . fine ( "#" + bomLines . length ) ; }
add bom lines to this . called recursively
