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:48:32 UTC

svn commit: r772834 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java

Author: hansbak
Date: Fri May  8 03:48:32 2009
New Revision: 772834

URL: http://svn.apache.org/viewvc?rev=772834&view=rev
Log:
correct order recalculation

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

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=772834&r1=772833&r2=772834&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java Fri May  8 03:48:32 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();