Fixed: Updating an OrderItem loses supplierProductId
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.
@@ -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;
