svn commit: r566702 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml servicedef/services_fixedasset.xml

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

svn commit: r566702 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml servicedef/services_fixedasset.xml

hansbak-2
Author: hansbak
Date: Thu Aug 16 06:14:25 2007
New Revision: 566702

URL: http://svn.apache.org/viewvc?view=rev&rev=566702
Log:
delete service createFixedAssetAndLinkToProduct (is moved to product)

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml
    ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml

Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml?view=diff&rev=566702&r1=566701&r2=566702
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml Thu Aug 16 06:14:25 2007
@@ -57,30 +57,6 @@
         <create-value value-name="newEntity"/>
     </simple-method>
 
-    <simple-method method-name="createFixedAssetAndLinkToProduct" short-description="Create an FixedAsset and link the asset to the product">
-        <check-permission permission="ACCOUNTING" action="_CREATE">
-            <alt-permission permission="ACCOUNTING_ROLE" action="_CREATE"/>
-            <fail-message message="Security Error: to run createFixedAssetAndLinkToProduct you must have the ACCOUNTING_CREATE or ACCOUNTING_ADMIN permission, or the limited ACCOUNTING_ROLE_CREATE permission"/>
-        </check-permission>        
-        <check-errors/>
-
-        <set field="createFixedAsset.fixedAssetTypeId" value="PROPERTY"/>
-        <if-not-empty field-name="parameters.productName">
-            <set field="createFixedAsset.fixedAssetName" from-field="parameters.productName"/>
-        </if-not-empty>
-        <if-not-empty field-name="parameters.internalName">
-            <set field="createFixedAsset.fixedAssetName" from-field="parameters.internalName"/>
-        </if-not-empty>
-        <call-service service-name="createFixedAsset" in-map-name="createFixedAsset">
-            <result-to-field result-name="fixedAssetId" field-name="newLink.fixedAssetId"/>
-        </call-service>
-
-        <set field="newLink.fixedAssetProductTypeId" value="FAPT_USE"/>
-        <set field="newLink.productId" from-field="parameters.productId"/>
-        <call-service service-name="addFixedAssetProduct" in-map-name="newLink"/>
-        
-    </simple-method>
-
     <!-- update an existing Fixed Asset header Record -->
     <simple-method method-name="updateFixedAsset" short-description="Update an existing FixedAsset">
         <check-permission permission="ACCOUNTING" action="_UPDATE" >

Modified: ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml?view=diff&rev=566702&r1=566701&r2=566702
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml Thu Aug 16 06:14:25 2007
@@ -32,13 +32,6 @@
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
         <override name="fixedAssetTypeId" optional="false"/>
     </service>
-    <service name="createFixedAssetAndLinkToProduct" default-entity-name="FixedAsset" engine="simple"
-                location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetAndLinkToProduct" auth="true">
-        <description>Create an FixedAsset and link to an existing product</description>
-        <attribute name="productId" mode="IN" type="String"/>
-        <auto-attributes include="pk" mode="INOUT" optional="true"/>
-        <auto-attributes include="nonpk" mode="IN" optional="true"/>
-    </service>
     <service name="updateFixedAsset" default-entity-name="FixedAsset" engine="simple"
                 location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAsset" auth="true">
         <description>Update an FixedAsset</description>