public boolean isManufactured(boolean ignoreSupplierProducts){
  List<GenericValue> supplierProducts=null;
  try {
    supplierProducts=product.getRelated("SupplierProduct",UtilMisc.toMap("supplierPrefOrderId","10_MAIN_SUPPL"),UtilMisc.toList("minimumOrderQuantity"),false);
  }
 catch (  GenericEntityException gee) {
    Debug.logError("Problem in BOMNode.isManufactured()",module);
  }
  supplierProducts=EntityUtil.filterByDate(supplierProducts,UtilDateTime.nowTimestamp(),"availableFromDate","availableThruDate",true);
  return childrenNodes.size() > 0 && (ignoreSupplierProducts || UtilValidate.isEmpty(supplierProducts));
}

public boolean isManufactured ( boolean ignoreSupplierProducts ) { List < GenericValue > supplierProducts = null ; try { supplierProducts = product . getRelated ( "SupplierProduct" , UtilMisc . toMap ( "supplierPrefOrderId" , "10_MAIN_SUPPL" ) , UtilMisc . toList ( "minimumOrderQuantity" ) , false ) ; } catch ( GenericEntityException gee ) { Debug . logError ( "Problem in BOMNode.isManufactured()" , module ) ; } supplierProducts = EntityUtil . filterByDate ( supplierProducts , UtilDateTime . nowTimestamp ( ) , "availableFromDate" , "availableThruDate" , true ) ; return childrenNodes . size ( ) > 0 && ( ignoreSupplierProducts || UtilValidate . isEmpty ( supplierProducts ) ) ; }
a part is considered manufactured if it has child nodes and unless ignoresupplierproducts is set , if it also has no unexpired supplierproducts defined
