Author: lektran
Date: Sat Nov 3 19:39:07 2007
New Revision: 591726
URL:
http://svn.apache.org/viewvc?rev=591726&view=revLog:
Reverting my last commit (Call getProductRequirmentMethod after checking the order type, saves a few cycles), turns out that getProductRequirementMethod does the order lookup in the first place.
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=591726&r1=591725&r2=591726&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 19:39:07 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"/>