question: 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 ) ) ; }
target:  A part is considered manufactured if it has child nodes AND unless ignoreSupplierProducts is set, if it also has no unexpired SupplierProducts defined