svn commit: r502329 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl

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

svn commit: r502329 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl

sichen
Author: sichen
Date: Thu Feb  1 11:41:47 2007
New Revision: 502329

URL: http://svn.apache.org/viewvc?view=rev&rev=502329
Log:
Hide the create customer link in the order shortcuts if there are no items in the cart

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl?view=diff&rev=502329&r1=502328&r2=502329
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl Thu Feb  1 11:41:47 2007
@@ -66,7 +66,7 @@
                     <a href="/partymgr/control/findparty?${externalKeyParam?if_exists}" class="buttontext">${uiLabelMap.PartyFindParty}</a>
                   </td>
                 </tr>
-                <#if shoppingCart.getOrderType() == "SALES_ORDER">
+                <#if shoppingCart.getOrderType() == "SALES_ORDER" && shoppingCart.items()?has_content>
                   <tr>
                     <td>
                       <a href="<@ofbizUrl>setCustomer</@ofbizUrl>" class="buttontext">${uiLabelMap.PartyCreateNewCustomer}</a>