Author: bibryam
Date: Wed Feb 20 01:41:44 2008
New Revision: 629396
URL:
http://svn.apache.org/viewvc?rev=629396&view=revLog:
Changing supplier party should also change BillFromVendorPartyId.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java?rev=629396&r1=629395&r2=629396&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java Wed Feb 20 01:41:44 2008
@@ -1421,6 +1421,9 @@
return "error";
} else {
cart.setOrderPartyId(partyId);
+ if ("PURCHASE_ORDER".equals(cart.getOrderType())) {
+ cart.setBillFromVendorPartyId(partyId);
+ }
}
} else if (partyId != null && partyId.length() == 0) {
cart.setOrderPartyId("_NA_");