Author: ashish
Date: Thu Jul 23 10:37:02 2009
New Revision: 797009
URL:
http://svn.apache.org/viewvc?rev=797009&view=revLog:
As per Vikas's suggestion changing this code.
auto create mode in service definition handles passing fromDate as empty, the implementation provides nowTimeStamp to fromDate.
Thanks Awdesh for your contribution.
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
ofbiz/trunk/applications/accounting/servicedef/services_invoice.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=797009&r1=797008&r2=797009&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 Thu Jul 23 10:37:02 2009
@@ -666,13 +666,4 @@
<field-to-result field="filteredInvoiceList"/>
</simple-method>
- <simple-method method-name="createInvoiceItemAssoc" short-description="Create an association between two invoice items">
- <make-value entity-name="InvoiceItemAssoc" value-field="newEntity"/>
- <set-pk-fields map="parameters" value-field="newEntity"/>
- <set-nonpk-fields map="parameters" value-field="newEntity"/>
- <if-empty field="newEntity.fromDate">
- <now-timestamp field="newEntity.fromDate"/>
- </if-empty>
- <create-value value-field="newEntity"/>
- </simple-method>
</simple-methods>
Modified: ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml?rev=797009&r1=797008&r2=797009&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml Thu Jul 23 10:37:02 2009
@@ -315,8 +315,7 @@
</service>
<!-- Invoice Association Services -->
- <service name="createInvoiceItemAssoc" default-entity-name="InvoiceItemAssoc" engine="simple"
- location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="createInvoiceItemAssoc" auth="true">
+ <service name="createInvoiceItemAssoc" default-entity-name="InvoiceItemAssoc" engine="entity-auto" invoke="create" auth="true">
<description>Create a InvoiceItemAssoc</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>