Author: apatel
Date: Sun Aug 26 12:16:10 2007
New Revision: 569861
URL:
http://svn.apache.org/viewvc?rev=569861&view=revLog:
Make fromDate optional in createFixedAssetRegistration service. If fromDate is null then set it to now timestamp.
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?rev=569861&r1=569860&r2=569861&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml Sun Aug 26 12:16:10 2007
@@ -488,6 +488,9 @@
<make-value value-name="newEntity" entity-name="FixedAssetRegistration"/>
<set-nonpk-fields map-name="parameters" value-name="newEntity"/>
<set-pk-fields map-name="parameters" value-name="newEntity"/>
+ <if-empty field-name="newEntity.fromDate">
+ <now-timestamp-to-env env-name="newEntity.fromDate"/>
+ </if-empty>
<create-value value-name="newEntity"/>
</simple-method>
<simple-method method-name="updateFixedAssetRegistration" short-description="Update an existing FixedAsset Registration">
Modified: ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml?rev=569861&r1=569860&r2=569861&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_fixedasset.xml Sun Aug 26 12:16:10 2007
@@ -188,6 +188,7 @@
<description>Create a FixedAsset Registration</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="updateFixedAssetRegistration" default-entity-name="FixedAssetRegistration" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetRegistration" auth="true">