You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2014/11/15 15:14:39 UTC
svn commit: r1639891 - in
/ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart:
ShoppingCartItem.java ShoppingCartServices.java
Author: ashish
Date: Sat Nov 15 14:14:38 2014
New Revision: 1639891
URL: http://svn.apache.org/r1639891
Log:
Applied bug fix from trunk r1639889
Applied patch from jira issue - OFBIZ-5470 - List Price gets reset to zero after updating default/base price of existing order items.
Thanks Christian for reporting the issue and Thanks Arun for providing the patch for this issue.
Modified:
ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
Modified: ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java?rev=1639891&r1=1639890&r2=1639891&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java (original)
+++ ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java Sat Nov 15 14:14:38 2014
@@ -2011,6 +2011,10 @@ public class ShoppingCartItem implements
return listPrice;
}
+ public void setListPrice(BigDecimal listPrice) {
+ this.listPrice = listPrice;
+ }
+
/** Returns isModifiedPrice */
public boolean getIsModifiedPrice() {
return isModifiedPrice;
Modified: ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=1639891&r1=1639890&r2=1639891&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/branches/release12.04/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Sat Nov 15 14:14:38 2014
@@ -505,6 +505,7 @@ public class ShoppingCartServices {
cartItem.setIsModifiedPrice("Y".equals(item.getString("isModifiedPrice")));
cartItem.setName(item.getString("itemDescription"));
cartItem.setExternalId(item.getString("externalId"));
+ cartItem.setListPrice(item.getBigDecimal("unitListPrice"));
// load order item attributes
List<GenericValue> orderItemAttributesList = null;