Author: hansbak
Date: Wed Jul 10 06:30:53 2013
New Revision: 1501659

URL: http://svn.apache.org/r1501659
Log:
create invoice: assume status is INVOICE_IN_PROCESS when not provided

Modified:
    
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml

Modified: 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml?rev=1501659&r1=1501658&r2=1501659&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
 (original)
+++ 
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
 Wed Jul 10 06:30:53 2013
@@ -163,6 +163,11 @@ under the License.
             <set from-field="nowTimestamp" field="parameters.invoiceDate"/>
         </if-empty>
 
+        <!-- set the invoice status if not provided -->
+        <if-empty field="parameters.statusId">
+            <set field="parameters.statusId" value="INVOICE_IN_PROCESS"/>
+        </if-empty>
+
         <!-- use currency of receiving company -->
         <entity-one entity-name="Party" value-field="party"/>
         <if-not-empty field="party.preferredCurrencyUomId">


Reply via email to