svn commit: r699974 - /ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

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

svn commit: r699974 - /ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

hansbak-2
Author: hansbak
Date: Sun Sep 28 20:36:25 2008
New Revision: 699974

URL: http://svn.apache.org/viewvc?rev=699974&view=rev
Log:
only show cancel button when not completed or cancelled

Modified:
    ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

Modified: ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml?rev=699974&r1=699973&r2=699974&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml Sun Sep 28 20:36:25 2008
@@ -195,6 +195,12 @@
     </menu>
     <menu name="RequestSubTabBar" type="simple" menu-container-style="button-bar button-style-2">
         <menu-item name="cancelledRequest" title="Cancel request" >
+            <condition>
+                <and>
+                    <if-compare field-name="custRequest.statusId" operator="not-equals" value="CRQ_CANCELLED"/>
+                    <if-compare field-name="custRequest.statusId" operator="not-equals" value="CRQ_COMPLETED"/>
+                </and>
+            </condition>
             <link target="setCustRequestStatus?custRequestId=${custRequestId}&amp;statusId=CRQ_CANCELLED"/>
         </menu-item>
     </menu>