Author: jleroux
Date: Wed Sep 19 00:05:03 2007
New Revision: 577175
URL:
http://svn.apache.org/viewvc?rev=577175&view=revLog:
Applied fix from trunk for revision: 567368
Modified:
ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=577175&r1=577174&r2=577175&view=diff==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Wed Sep 19 00:05:03 2007
@@ -416,6 +416,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);
@@ -457,6 +458,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);
}