svn commit: r570051 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml

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

svn commit: r570051 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml

jonesde
Author: jonesde
Date: Mon Aug 27 02:18:03 2007
New Revision: 570051

URL: http://svn.apache.org/viewvc?rev=570051&view=rev
Log:
Small change to set a default statusId, the active one, when none is passed in

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml

Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml?rev=570051&r1=570050&r2=570051&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml Mon Aug 27 02:18:03 2007
@@ -22,6 +22,11 @@
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
 
     <simple-method method-name="createFinAccount" short-description="Create a Financial Account">
+        <!-- if no statusId set to default to FNACT_ACTIVE -->
+        <if-empty field-name="parameters.statusId">
+            <set field="parameters.statusId" value="FNACT_ACTIVE"/>
+        </if-empty>
+        
         <make-value value-name="newEntity" entity-name="FinAccount"/>
         <set-pk-fields map-name="parameters" value-name="newEntity"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>