svn commit: r759439 - /ofbiz/trunk/applications/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: r759439 - /ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

hansbak-2
Author: hansbak
Date: Sat Mar 28 08:51:44 2009
New Revision: 759439

URL: http://svn.apache.org/viewvc?rev=759439&view=rev
Log:
if est startdate filled and est completiondate not filled then copy from startdate because all calendar programs expect that to be filled

Modified:
    ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

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=759439&r1=759438&r2=759439&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 Sat Mar 28 08:51:44 2009
@@ -43,6 +43,12 @@
         <field-to-result field="newEntity.workEffortId" result-name="workEffortId"/>
         <set-nonpk-fields map="parameters" value-field="newEntity"/>
         
+        <if-not-empty field="newEntity.estimatedStartDate">
+            <if-empty field="newEntity.estimatedCompletionDate">
+                <set field="newEntity.estimatedCompletionDate" from-field="newEntity.estimatedStartDate"/>
+            </if-empty>
+        </if-not-empty>
+        
         <now-timestamp field="nowTimestamp"/>
         <set from-field="nowTimestamp" field="newEntity.lastStatusUpdate"/>
         <set from-field="nowTimestamp" field="newEntity.lastModifiedDate"/>