svn commit: r1639890 - in /ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart: ShoppingCartItem.java ShoppingCartServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1639890 - in /ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart: ShoppingCartItem.java ShoppingCartServices.java

ashish-18
Author: ashish
Date: Sat Nov 15 14:12:23 2014
New Revision: 1639890

URL: http://svn.apache.org/r1639890
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/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
    ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Modified: ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java?rev=1639890&r1=1639889&r2=1639890&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java (original)
+++ ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java Sat Nov 15 14:12:23 2014
@@ -2020,6 +2020,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/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=1639890&r1=1639889&r2=1639890&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Sat Nov 15 14:12:23 2014
@@ -506,6 +506,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;