Author: paulfoxworthy
Date: Fri Apr 19 05:51:31 2019
New Revision: 1857784
URL:
http://svn.apache.org/viewvc?rev=1857784&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/release18.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java
Modified: ofbiz/ofbiz-framework/branches/release18.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=1857784&r1=1857783&r2=1857784&view=diff==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/ofbiz-framework/branches/release18.12/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java Fri Apr 19 05:51:31 2019
@@ -530,6 +530,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;