Author: jleroux
Date: Wed Feb 20 06:09:34 2008
New Revision: 629463
URL:
http://svn.apache.org/viewvc?rev=629463&view=revLog:
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"/>