Author: lektran
Date: Sat Nov 3 15:45:10 2007
New Revision: 591705
URL:
http://svn.apache.org/viewvc?rev=591705&view=revLog:
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"/>