Author: jacopoc
Date: Wed Jun 20 02:54:29 2007
New Revision: 549034

URL: http://svn.apache.org/viewvc?view=rev&rev=549034
Log:
Fixed bad code that was using hardcoded "WebStoreWarehouse" in conditions, 
thanks to Scott Gray for the bug report.

Modified:
    
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/countFacilityInventoryByProduct.bsh

Modified: 
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/countFacilityInventoryByProduct.bsh
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/countFacilityInventoryByProduct.bsh?view=diff&rev=549034&r1=549033&r2=549034
==============================================================================
--- 
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/countFacilityInventoryByProduct.bsh
 (original)
+++ 
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/countFacilityInventoryByProduct.bsh
 Wed Jun 20 02:54:29 2007
@@ -271,7 +271,7 @@
                 salesUsageIt = 
delegator.findListIteratorByCondition(salesUsageViewEntity, 
                         new EntityConditionList(
                             UtilMisc.toList(
-                                new EntityExpr("facilityId", 
EntityOperator.EQUALS, "WebStoreWarehouse"),
+                                new EntityExpr("facilityId", 
EntityOperator.EQUALS, facilityId),
                                 new EntityExpr("productId", 
EntityOperator.EQUALS, oneProd.getString("productId")),
                                 new EntityExpr("statusId", EntityOperator.IN, 
UtilMisc.toList("ORDER_COMPLETED", "ORDER_APPROVED", "ORDER_HELD")),
                                 new EntityExpr("orderTypeId", 
EntityOperator.EQUALS, "SALES_ORDER"),
@@ -297,7 +297,7 @@
                 productionUsageIt = 
delegator.findListIteratorByCondition(productionUsageViewEntity, 
                         new EntityConditionList(
                             UtilMisc.toList(
-                                new EntityExpr("facilityId", 
EntityOperator.EQUALS, "WebStoreWarehouse"),
+                                new EntityExpr("facilityId", 
EntityOperator.EQUALS, facilityId),
                                 new EntityExpr("productId", 
EntityOperator.EQUALS, oneProd.getString("productId")),
                                 new EntityExpr("workEffortTypeId", 
EntityOperator.EQUALS, "PROD_ORDER_TASK"),
                                 new EntityExpr("actualCompletionDate", 
EntityOperator.GREATER_THAN_EQUAL_TO, checkTime)


Reply via email to