svn commit: r702054 - /ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

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

svn commit: r702054 - /ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

hansbak-2
Author: hansbak
Date: Mon Oct  6 02:43:15 2008
New Revision: 702054

URL: http://svn.apache.org/viewvc?rev=702054&view=rev
Log:
corrected a timesheet update problem

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=702054&r1=702053&r2=702054&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Mon Oct  6 02:43:15 2008
@@ -259,8 +259,7 @@
             <iterate entry-name="timeEntry" list-name="timeEntries">
                 <if-compare-field field="timeEntry.workEffortId" to-field="parameters.workEffortId" operator="equals">
                     <if-compare-field field="timeEntry.rateTypeId" to-field="parameters.rateTypeId" operator="equals">
-                        <!-- check if the entry does not contain any hours, then delete -->
-                        <if-empty field="timeEntry.hours">
+                        <if-not-empty field="timeEntry.hours">
                             <remove-value value-name="timeEntry"/>
                             <else>
                                 <!-- translate the date into the daynumber -->
@@ -278,7 +277,7 @@
                                 <call-simple-method method-name="updateTimeEntry"/>                        
                                 <set field="parameters.hoursDay${dayNumber}" value="-999999"/>
                             </else>
-                        </if-empty>
+                        </if-not-empty>
                     </if-compare-field>
                 </if-compare-field>
             </iterate>