svn commit: r629463 - /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: r629463 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml

jleroux@apache.org
Author: jleroux
Date: Wed Feb 20 06:09:34 2008
New Revision: 629463

URL: http://svn.apache.org/viewvc?rev=629463&view=rev
Log:
A patch from nicolas Malin "Possibility to use manual orderId on createOrderHeader" (https://issues.apache.org/jira/browse/OFBIZ-1664) - OFBIZ-1664


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=629463&r1=629462&r2=629463&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 Wed Feb 20 06:09:34 2008
@@ -525,7 +525,12 @@
         <check-errors/>
 
         <make-value value-name="newEntity" entity-name="OrderHeader"/>
-        <sequenced-id-to-env sequence-name="OrderHeader" env-name="newEntity.orderId"/>
+        <if-not-empty field-name="parameters.orderId">        
+            <set field="newEntity.orderId" from-field="parameters.orderId"/>
+        <else>
+            <sequenced-id-to-env sequence-name="OrderHeader" env-name="newEntity.orderId"/>
+        </else>
+        </if-not-empty>
         <field-to-result field-name="newEntity.orderId" result-name="orderId"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>