svn commit: r703052 - /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: r703052 - /ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

hansbak-2
Author: hansbak
Date: Wed Oct  8 21:01:25 2008
New Revision: 703052

URL: http://svn.apache.org/viewvc?rev=703052&view=rev
Log:
project status was not showing correct status from total tasks

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=703052&r1=703051&r2=703052&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Wed Oct  8 21:01:25 2008
@@ -474,7 +474,8 @@
                     <or>
                         <if-compare field="highInfo.currentStatusId" value="PTS_COMPLETED" operator="equals"/>
                         <if-compare field="highInfo.currentStatusId" value="PTS_ON_HOLD" operator="equals"/>
-                        <if-compare field="highInfo.currentStatusId" value="PTS_CANCELLED" operator="equals"/>                    </or>
+                        <if-compare field="highInfo.currentStatusId" value="PTS_CANCELLED" operator="equals"/>                    
+                    </or>
                     <not>
                         <if-empty field="allTaskStatus"/>
                     </not>
@@ -859,17 +860,31 @@
                     <set field="lowInfo.currentStatusId" value="PTS_CREATED_IP"/><!-- task is in progress -->
                 </if-not-empty>
             </if-compare>
-        </if-compare>        
-        
+        </if-compare>    
+            
         <entity-one entity-name="StatusItem" value-name="status">
             <field-map field-name="statusId" env-name="lowInfo.currentStatusId"/>
         </entity-one>
         <if-empty field="highInfo.sequenceId">
             <set field="highInfo.sequenceId" from-field="status.sequenceId"/>
             <else>
-                <if-compare-field field="highInfo.sequenceId" to-field="status.sequenceId" operator="less">
-                    <set field="highInfo.sequenceId" from-field="status.sequenceId"/>
-                </if-compare-field>
+                <if>
+                    <condition>
+                        <and>
+                            <if-compare-field field="highInfo.sequenceId" to-field="status.sequenceId" operator="less"/>
+                            <and>
+                                <if-compare field="highInfo.sequenceId" value="05" operator="not-equals"/>
+                                <if-compare field="status.sequenceId" value="09" operator="not-equals"/>
+                            </and>
+                        </and>
+                    </condition>
+                    <then>
+                        <set field="highInfo.sequenceId" from-field="status.sequenceId"/>
+                    </then>
+                    <else>
+                        <set field="highInfo.sequenceId" value="05"/>
+                    </else>
+                </if>
             </else>
         </if-empty>