Author: jleroux
Date: Sun Oct  6 07:55:01 2013
New Revision: 1529588

URL: http://svn.apache.org/r1529588
Log:
A patch from  Jyoti Sharma  for "Add Item to approved order" 
https://issues.apache.org/jira/browse/OFBIZ-5340

While adding an item to an approved order if we select orderItemTypeId it gives 
an error message.
The error was occurring because in "orderItemTypeId" field, value being passed 
was that of "reasonEnumId". I am submitting a patch having the correct value. 

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

Modified: 
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=1529588&r1=1529587&r2=1529588&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java 
(original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java 
Sun Oct  6 07:55:01 2013
@@ -3490,7 +3490,7 @@ public class OrderServices {
         Timestamp itemDesiredDeliveryDate = (Timestamp) 
context.get("itemDesiredDeliveryDate");
         String overridePrice = (String) context.get("overridePrice");
         String reasonEnumId = (String) context.get("reasonEnumId");
-        String orderItemTypeId = (String) context.get("reasonEnumId");
+        String orderItemTypeId = (String) context.get("orderItemTypeId");
         String changeComments = (String) context.get("changeComments");
         Boolean calcTax = (Boolean) context.get("calcTax");
         if (calcTax == null) {


Reply via email to