Author: diveshdutta
Date: Sat Jun 18 18:55:56 2016
New Revision: 1749083
URL:
http://svn.apache.org/viewvc?rev=1749083&view=revLog:
[7128] Fixed: Purchase Order created out of Approved Product Requirement are not getting linked/shown over Requirement - Order screen. Added OrderRequirementCommitment record while placing PO from approved requirements.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java?rev=1749083&r1=1749082&r2=1749083&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java Sat Jun 18 18:55:56 2016
@@ -676,6 +676,8 @@ public class CheckOutHelper {
inputMap.put("userLogin", userLogin);
// TODO: check service result for an error return
dispatcher.runSync("updateRequirement", inputMap);
+ inputMap = UtilMisc.toMap("userLogin", userLogin, "orderId", orderId, "orderItemSeqId", shoppingCartItem.getOrderItemSeqId(), "requirementId", requirementId, "quantity", shoppingCartItem.getQuantity());
+ dispatcher.runSync("createOrderRequirementCommitment", inputMap);
} catch (Exception e) {
String service = e.getMessage();
Map<String, String> messageMap = UtilMisc.toMap("service", service);