[OFBiz] SVN: r6914 - trunk/applications/accounting/script/org/ofbiz/accounting/invoice
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Fri Mar 3 13:17:18 CST 2006
Author: sichen
Date: 2006-03-03 13:17:15 -0600 (Fri, 03 Mar 2006)
New Revision: 6914
Modified:
trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
Log:
Fixed bug in copy invoice where if an invoice is copied with a a non 'in process' status, will cause problems. Thanks to Hans Bakker.
Modified: trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
===================================================================
--- trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml 2006-03-03 19:13:10 UTC (rev 6913)
+++ trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml 2006-03-03 19:17:15 UTC (rev 6914)
@@ -176,7 +176,8 @@
</call-service>
<set field="invoice.invoiceId" from-field="parameters.invoiceId"/>
<now-timestamp-to-env env-name="nowTimestamp"/>
- <set from-field="nowTimestamp" field="invoice.invoiceDate"/>
+ <set field="invoice.invoiceDate" from-field="nowTimestamp"/>
+ <set field="invoice.statusId" value="INVOICE_IN_PROCESS"/>
<set-service-fields service-name="createInvoice" map-name="invoice" to-map-name="newInvoice"/>
<call-service service-name="createInvoice" in-map-name="newInvoice">
<result-to-field result-name="invoiceId" field-name="invoiceId"/>
More information about the Svn
mailing list