Dev - bug fix for Quicklookup contrib

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

Dev - bug fix for Quicklookup contrib

Fred Forester-2

Hi Jacopo,

there was a bug in that patch. quick lookup fails for sales orders.

Index:
applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
===================================================================
---
applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
(revision 22)
+++
applications/order/webapp/ordermgr/WEB-INF/actions/entry/cart/LookupBulkAddProducts.bsh
(working copy)
@@ -50,7 +50,7 @@
          EntityOperator.LIKE, productId.toUpperCase() + "%"));
  }
  if (partyId != null && partyId.equals("_NA_")) partyId = null;
-if (partyId != null)
+if (partyId != null &&
"PURCHASE_ORDER".equals(shoppingCart.getOrderType()) )
  {
      conditionList.add(new
EntityExpr("partyId",EntityOperator.EQUALS,partyId));
  }

Thanx
Fred

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev