Author: jleroux
Date: Tue Oct 25 08:33:24 2011
New Revision: 1188564
URL:
http://svn.apache.org/viewvc?rev=1188564&view=revLog:
A patch from Kiran Gawde "originalFacilityId is not populated in order"
https://issues.apache.org/jira/browse/OFBIZ-4499Order gets the facilityId from shopping cart. But facilityId is never set in shopping cart.
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?rev=1188564&r1=1188563&r2=1188564&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Tue Oct 25 08:33:24 2011
@@ -231,6 +231,9 @@ public class ShoppingCart implements Ite
while (itIt.hasNext()) {
cartLines.add(new ShoppingCartItem(itIt.next()));
}
+
+ this.facilityId = cart.facilityId;
+ this.webSiteId = cart.webSiteId;
}
/** Creates new empty ShoppingCart object. */
@@ -262,6 +265,7 @@ public class ShoppingCart implements Ite
// since default cart is of type SALES_ORDER, set to store's payToPartyId
this.billFromVendorPartyId = productStore.getString("payToPartyId");
}
+ this.facilityId = productStore.getString("inventoryFacilityId");
}
}