svn commit: r591705 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml

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

svn commit: r591705 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml

lektran
Author: lektran
Date: Sat Nov  3 15:45:10 2007
New Revision: 591705

URL: http://svn.apache.org/viewvc?rev=591705&view=rev
Log:
Call getProductRequirmentMethod after checking the order type, saves a few cycles

Modified:
    ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml

Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?rev=591705&r1=591704&r2=591705&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml Sat Nov  3 15:45:10 2007
@@ -205,8 +205,8 @@
             <fail-property resource="OrderErrorUiLabels" property="OrderSecurityErrorToRunCheckCreateOrderRequirement"/>
         </check-permission>
         <check-errors/>
-        <call-simple-method method-name="getProductRequirementMethod"/>
         <if-compare field-name="order.orderTypeId" operator="equals" value="SALES_ORDER">
+            <call-simple-method method-name="getProductRequirementMethod"/>
             <if-compare field-name="requirementMethodId" operator="equals" value="PRODRQM_AUTO">
                 <!-- create the requirement -->
                 <set from-field="parameters.productId" field="inputMap.productId"/>