only show cancel button when not completed or cancelled

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@699974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-09-29 03:36:25 +00:00
parent 2895745ee0
commit e994b71b2a
+6
View File
@@ -195,6 +195,12 @@ under the License.
</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>