[OFBiz] SVN: r7860 - trunk/applications/order/src/org/ofbiz/order/order

jacopo@svn.ofbiz.org jacopo at svn.ofbiz.org
Sat Jun 24 16:20:46 CDT 2006


Author: jacopo
Date: 2006-06-24 16:20:40 -0500 (Sat, 24 Jun 2006)
New Revision: 7860

Modified:
   trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
Log:
Commented code that runs the old auto-explode-marketing-package stuff (recently deprecated); this code was causing non-product items to be removed from the cart. Thanks to Ruth Hoffman for the bug report.
The code should be removed but I'll leave this task to Si (that implemented it and so knows better than me how to perform this task).


Modified: trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
===================================================================
--- trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java	2006-06-24 17:03:25 UTC (rev 7859)
+++ trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java	2006-06-24 21:20:40 UTC (rev 7860)
@@ -194,6 +194,7 @@
         List orderItemPriceInfo = (List) context.get("orderItemPriceInfos");
 
         // explode items which are MARKETINGG_PKG_AUTO
+        /*
         if (!orderTypeId.equals("PURCHASE_ORDER")) {
             try {
                 explodeMarketingPkgAutoItem(orderItems, orderAdjustments, orderItemShipGroupInfo, orderItemPriceInfo, orderTypeId, delegator, dispatcher, locale);
@@ -202,7 +203,7 @@
                return ServiceUtil.returnError("Error on exploding marketing_pkg_auto item.[" + e.toString() + "]");
             }
         }
-
+        */
         // check inventory and other things for each item
         List errorMessages = FastList.newInstance();
         Map normalizedItemQuantities = FastMap.newInstance();



More information about the Svn mailing list