svn commit: r591254 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r591254 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

lektran
Author: lektran
Date: Fri Nov  2 01:08:54 2007
New Revision: 591254

URL: http://svn.apache.org/viewvc?rev=591254&view=rev
Log:
Set the billing account on the cart when running loadCartFromOrder

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=591254&r1=591253&r2=591254&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 Fri Nov  2 01:08:54 2007
@@ -257,6 +257,8 @@
                 if ("FIN_ACCOUNT".equals(paymentId)) {
                     cpi.finAccountId = opp.getString("finAccountId");
                 }
+                // set the billing account and amount
+                cart.setBillingAccount(orderHeader.getString("billingAccountId"), orh.getBillingAccountMaxAmount());
             }
         } else {
             Debug.log("No payment preferences found for order #" + orderId, module);