svn commit: r890334 - in /ofbiz/trunk/applications: accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

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

svn commit: r890334 - in /ofbiz/trunk/applications: accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

bibryam
Author: bibryam
Date: Mon Dec 14 14:04:23 2009
New Revision: 890334

URL: http://svn.apache.org/viewvc?rev=890334&view=rev
Log:
Validate some of the manually entered IDs.

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml
    ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.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=890334&r1=890333&r2=890334&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 Mon Dec 14 14:04:23 2009
@@ -39,7 +39,10 @@
             <entity-one entity-name="FixedAsset" value-field="fixedAsset"/>
             <if-not-empty field="fixedAsset">
                 <add-error><fail-property resource="AccountingUiLabels" property="AccountingFixedAssetIdAlreadyExists"/></add-error>
-                <log level="info" message="${AccountingUiLabels.AccountingFixedAssetIdAlreadyExists} "/>
+                <log level="info" message="${AccountingUiLabels.AccountingFixedAssetIdAlreadyExists}"/>
+                <else>
+                    <check-id field="parameters.fixedAssetId"/>
+                </else>                
             </if-not-empty>
             <check-errors/>
             <set from-field="parameters.fixedAssetId" field="newEntity.fixedAssetId"/>

Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=890334&r1=890333&r2=890334&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Mon Dec 14 14:04:23 2009
@@ -37,6 +37,8 @@
         <if-empty field="parameters.workEffortId">
             <sequenced-id sequence-name="WorkEffort" field="newEntity.workEffortId"/>
             <else>
+                <check-id field="parameters.workEffortId"/>
+                <check-errors/>            
                 <set field="newEntity.workEffortId" from-field="parameters.workEffortId"/>
             </else>
         </if-empty>