You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/05/08 05:51:01 UTC
svn commit: r772835 -
/ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Author: hansbak
Date: Fri May 8 03:51:00 2009
New Revision: 772835
URL: http://svn.apache.org/viewvc?rev=772835&view=rev
Log:
Applied fix from trunk for revision: 772834
correct order recalculation
Modified:
ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Modified: ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=772835&r1=772834&r2=772835&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java (original)
+++ ofbiz/branches/release09.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java Fri May 8 03:51:00 2009
@@ -749,7 +749,7 @@
// if, on a purchase order, the quantity has changed, get the new SupplierProduct entity for this quantity level.
if (cart.getOrderType().equals("PURCHASE_ORDER")) {
oldQuantity = item.getQuantity();
- if (oldQuantity != quantity) {
+ if (oldQuantity.compareTo(quantity) != 0) {
// save the old description and price, in case the user wants to change those as well
oldDescription = item.getName();
oldPrice = item.getBasePrice();