You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/04/27 04:34:12 UTC

svn commit: r532935 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

Author: jaz
Date: Thu Apr 26 19:34:11 2007
New Revision: 532935

URL: http://svn.apache.org/viewvc?view=rev&rev=532935
Log:
updated payment info to allow multiple financial accounts

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

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?view=diff&rev=532935&r1=532934&r2=532935
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Thu Apr 26 19:34:11 2007
@@ -4223,6 +4223,9 @@
         public int compareTo(Object o) {
             CartPaymentInfo that = (CartPaymentInfo) o;
             Debug.logInfo("Compare [" + this.toString() + "] to [" + that.toString() + "]", module);
+            if (!this.finAccountId.equals(that.finAccountId)) {
+                return -1;    
+            }
             if (this.paymentMethodId != null) {
                 if (that.paymentMethodId == null) {
                     return 1;