Author: doogie
Date: Wed Apr 21 19:45:54 2010
New Revision: 936466

URL: http://svn.apache.org/viewvc?rev=936466&view=rev
Log:
When loading a cart from the order, and promotional items are being
included, then be certain to see isPromo corretly on the item.

Modified:
    
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Modified: 
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=936466&r1=936465&r2=936466&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
 (original)
+++ 
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
 Wed Apr 21 19:45:54 2010
@@ -471,6 +471,7 @@ public class ShoppingCartServices {
 
                 // flag the item w/ the orderItemSeqId so we can reference it
                 ShoppingCartItem cartItem = cart.findCartItem(itemIndex);
+                cartItem.setIsPromo(item.get("isPromo") != null && 
"Y".equals(item.getString("isPromo")));
                 cartItem.setOrderItemSeqId(item.getString("orderItemSeqId"));
 
                 try {


Reply via email to