Author: sichen
Date: Wed Oct 25 11:00:22 2006
New Revision: 467723

URL: http://svn.apache.org/viewvc?view=rev&rev=467723
Log:
Fixed the bug where modifying price during order entry does not cause the 
display price to be changed

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

Modified: 
incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?view=diff&rev=467723&r1=467722&r2=467723
==============================================================================
--- 
incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
 (original)
+++ 
incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
 Wed Oct 25 11:00:22 2006
@@ -725,6 +725,7 @@
                             if (security.hasEntityPermission("ORDERMGR", 
"_CREATE", userLogin)) {
                                 if (item != null) {
                                     item.setBasePrice(quantity); // this is 
quantity because the parsed number variable is the same as quantity
+                                    item.setDisplayPrice(quantity); // or the 
amount shown the cart items page won't be right 
                                     item.setIsModifiedPrice(true); // flag as 
a modified price
                                 }
                             }


Reply via email to