svn commit: r796972 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/invoice/InvoiceServices.xml servicedef/services_invoice.xml

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

svn commit: r796972 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/invoice/InvoiceServices.xml servicedef/services_invoice.xml

ashish-18
Author: ashish
Date: Thu Jul 23 07:47:17 2009
New Revision: 796972

URL: http://svn.apache.org/viewvc?rev=796972&view=rev
Log:
Crud opperation on InventoryItemAssoc entity.
Patch from Amit Sharma part of OFBIZ-2713 - Invoice generation from Commission Run

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=796972&r1=796971&r2=796972&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 07:47:17 2009
@@ -666,4 +666,13 @@
         <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=796972&r1=796971&r2=796972&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_invoice.xml Thu Jul 23 07:47:17 2009
@@ -313,4 +313,22 @@
         <attribute name="invoiceItemAssocTypeId" type="String" mode="IN" optional="false"/>
         <attribute name="filteredInvoiceList" type="List" mode="OUT" optional="true"/>
     </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">
+        <description>Create a InvoiceItemAssoc</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+        <override name="fromDate" optional="true"/>
+    </service>
+    <service name="updateInvoiceItemAssoc" default-entity-name="InvoiceItemAssoc" engine="entity-auto" invoke="update" auth="true">
+        <description>Update a InvoiceItemAssoc</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
+    <service name="deleteInvoiceItemAssoc" default-entity-name="InvoiceItemAssoc" engine="entity-auto" invoke="delete" auth="true">
+        <description>Delete a InvoiceItemAssoc</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+    </service>
 </services>