Author: deepak
Date: Tue Jul 5 08:34:53 2016
New Revision: 1751411
URL:
http://svn.apache.org/viewvc?rev=1751411&view=revLog:
(OFBIZ-7063) Applied patch jira issue.
===========================================
Shipping charges reset to ZERO when update purchase order item quantity
===========================================
Thanks Akash Jain and Pawan Verma for your contribution.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=1751411&r1=1751410&r2=1751411&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Tue Jul 5 08:34:53 2016
@@ -4641,6 +4641,7 @@ public class ShoppingCart implements Ite
GenericValue shipAdj = delegator.makeValue("OrderAdjustment");
shipAdj.set("orderAdjustmentTypeId", "SHIPPING_CHARGES");
shipAdj.set("amount", shipEstimate);
+ if("PURCHASE_ORDER".equals(cart.getOrderType())) shipAdj.set("isManual", "Y");
shipAdj.set("shipGroupSeqId", shipGroupSeqId);
values.add(shipAdj);
}