svn commit: r465307 - /incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r465307 - /incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh

jacopoc
Author: jacopoc
Date: Wed Oct 18 10:29:12 2006
New Revision: 465307

URL: http://svn.apache.org/viewvc?view=rev&rev=465307
Log:
Applied patch from Anil K Patel (OFBIZ-381) to fix missing search parameters in links for print/export of "view inventory by product" report.

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

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh?view=diff&rev=465307&r1=465306&r2=465307
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewFacilityInventoryByProduct.bsh Wed Oct 18 10:29:12 2006
@@ -107,16 +107,19 @@
                 new EntityExpr("salesDiscontinuationDate", EntityOperator.GREATER_THAN, productsSoldThruTimestamp)),
             EntityOperator.OR);
         whereConditionsList.add(discontinuationDateCondition);
+        searchParameterString = searchParameterString + "&productsSoldThruTimestamp=" + productsSoldThruTimestamp;
     }
 
     // add search on internal name
     if (UtilValidate.isNotEmpty(internalName)) {
         whereConditionsList.add(new EntityExpr("internalName", true, EntityOperator.LIKE, "%" + internalName + "%", true));
+        searchParameterString = searchParameterString + "&internalName=" + internalName;
     }
     
     // add search on productId
     if (UtilValidate.isNotEmpty(productId)) {
         whereConditionsList.add(new EntityExpr("productId", true, EntityOperator.LIKE, productId + "%", true));
+        searchParameterString = searchParameterString + "&productId=" + productId;
     }
     EntityCondition whereCondition = new EntityConditionList(whereConditionsList, EntityOperator.AND);