svn commit: r752024 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml

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

svn commit: r752024 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml

hansbak-2
Author: hansbak
Date: Tue Mar 10 08:36:43 2009
New Revision: 752024

URL: http://svn.apache.org/viewvc?rev=752024&view=rev
Log:
correction on previous commit

Modified:
    ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml

Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml?rev=752024&r1=752023&r2=752024&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml Tue Mar 10 08:36:43 2009
@@ -66,12 +66,16 @@
             <set value="CRQ_SUBMITTED" field="newEntity.statusId"/>
         </if-empty>
         
-        <if-empty field="parameters.custRequestId">
-            <sequenced-id sequence-name="CustRequest" field="newEntity.custRequestId"/>
-        </if-empty>
+        <if-not-empty field="parameters.custRequestId">
+            <set field="newEntity.custRequestId" from-field="parameters.custRequestId"/>
+            <else>
+                <sequenced-id sequence-name="CustRequest" field="newEntity.custRequestId"/>
+            </else>
+        </if-not-empty>
+
         <create-value value-field="newEntity"/>
         <field-to-result field="newEntity.custRequestId" result-name="custRequestId"/>
-
+        
         <!-- jacopoc: Commented out the following code because it is too specific and not valid as a
                       general rule: a user may enter the request from a customer even if he will not work
                       on it -->