From c438abea44c58df92e115c54fdc44339aaeecb74 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 6 Oct 2013 07:55:01 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529588 13f79535-47bb-0310-9956-ffa450edef68 --- applications/order/src/org/ofbiz/order/order/OrderServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/order/src/org/ofbiz/order/order/OrderServices.java b/applications/order/src/org/ofbiz/order/order/OrderServices.java index 8f1822e944..61ea591a58 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderServices.java +++ b/applications/order/src/org/ofbiz/order/order/OrderServices.java @@ -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) {