In method filterOutOfStockProducts added case for "virtual" products. In case a product isVirtual (= Y), then the available inventory count (lastInventoryCount) is summed up on all its product variants, across all the ProductFacility records, and then used to determine if the (parent/virtual) product is in stock or out of stock. This fix does not check if the facilityId of the ProductFacility records retrieved is associated and enabled to the ProductStore. Thanks Nicola Mazzoni for helping in anlyzing this issue.
Product component
This OFBiz component offers a fully utilised store management solution, including management of catalogs, products, price and promotion rules.
more information
For more information about this component visit the product page in the OFBiz WIKI, which can be found at https://cwiki.apache.org/confluence/display/OFBIZ/Product+management
issues
JIRA issues related to this component can be found at https://issues.apache.org/jira/browse/OFBIZ/component/12311155
commits
Committed revisions can be viewed at http://svn.apache.org/viewvc/ofbiz/trunk/applications/product