Author: paulfoxworthy
Date: Fri Apr 19 05:49:46 2019
New Revision: 1857783
URL:
http://svn.apache.org/viewvc?rev=1857783&view=revLog:
Fixed: Updating an OrderItem loses supplierProductId
(OFBIZ-10932)
When you edit on order item, the details are reloaded into a shopping cart
and after editing the order is updated from the cart. The supplierProductId
for the order item is now read into the cart so won't be lost.
Modified:
ofbiz/ofbiz-framework/branches/release17.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java
Modified: ofbiz/ofbiz-framework/branches/release17.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=1857783&r1=1857782&r2=1857783&view=diff==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java Fri Apr 19 05:49:46 2019
@@ -522,6 +522,7 @@ public class ShoppingCartServices {
cartItem.setName(item.getString("itemDescription"));
cartItem.setExternalId(item.getString("externalId"));
cartItem.setListPrice(item.getBigDecimal("unitListPrice"));
+ cartItem.setSupplierProductId(item.getString("supplierProductId"));
// load order item attributes
List<GenericValue> orderItemAttributesList = null;