svn commit: r567368 - /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: r567368 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

jacopoc
Author: jacopoc
Date: Sun Aug 19 00:58:01 2007
New Revision: 567368

URL: http://svn.apache.org/viewvc?view=rev&rev=567368
Log:
Applied patch from Bilgim Ibryam to fix wrong billfromvendor for po created from quotes. OFBIZ-1181

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?view=diff&rev=567368&r1=567367&r2=567368
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Sun Aug 19 00:58:01 2007
@@ -440,6 +440,7 @@
         // set shopping cart type
         if (quote.getString("quoteTypeId").equals("PURCHASE_QUOTE")){
             cart.setOrderType("PURCHASE_ORDER");
+            cart.setBillFromVendorPartyId(quote.getString("partyId"));
         }
         try {
             cart.setUserLogin(userLogin, dispatcher);
@@ -481,6 +482,8 @@
                     cart.setShipToCustomerPartyId(quoteRolePartyId);
                 } else if ("END_USER_CUSTOMER".equals(quoteRoleTypeId)) {
                     cart.setEndUserCustomerPartyId(quoteRolePartyId);
+                } else if ("BILL_FROM_VENDOR".equals(quoteRoleTypeId)) {
+                    cart.setBillFromVendorPartyId(quoteRolePartyId);
                 } else {
                     cart.addAdditionalPartyRole(quoteRolePartyId, quoteRoleTypeId);
                 }