svn commit: r1652708 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl

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

svn commit: r1652708 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl

jleroux@apache.org
Author: jleroux
Date: Sun Jan 18 06:51:11 2015
New Revision: 1652708

URL: http://svn.apache.org/r1652708
Log:
A slightly modified patch from  Christian Carlow  for "Add ability to find by orderName" https://issues.apache.org/jira/browse/OFBIZ-5969

Allow finding orders by the OrderHeader.orderName field at ordermgr/control/findorders.  Searching by orderName over orderId is more relevant when customers specify the name of their order.

jleroux: I have increased the size of the column from 5 to 10% and hid the name when empty

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl?rev=1652708&r1=1652707&r2=1652708&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/findOrders.ftl Sun Jan 18 06:51:11 2015
@@ -148,6 +148,11 @@ function toggleOrderIdList() {
                 <td width='5%'>&nbsp;</td>
                 <td align='left'><input type='text' name='orderId'/></td>
               </tr>
+              <tr>
+                <td width='25%' align='right' class='label'>${uiLabelMap.OrderOrderName}</td>
+                <td width='5%'>&nbsp;</td>
+                <td align='left'><input type='text' name='orderName'/></td>
+              </tr>
              <tr>
                 <td width='25%' align='right' class='label'>${uiLabelMap.OrderExternalId}</td>
                 <td width='5%'>&nbsp;</td>
@@ -589,6 +594,7 @@ document.lookuporder.orderId.focus();
           </td>
           <td width="5%">${uiLabelMap.OrderOrderType}</td>
           <td width="5%">${uiLabelMap.OrderOrderId}</td>
+          <td width="10 %">${uiLabelMap.OrderOrderName}</td>
           <td width="20%">${uiLabelMap.PartyName}</td>
           <td width="5%" align="right">${uiLabelMap.OrderSurvey}</td>
           <td width="5%" align="right">${uiLabelMap.OrderItemsOrdered}</td>
@@ -625,6 +631,11 @@ document.lookuporder.orderId.focus();
               </td>
               <td>${orderType.get("description",locale)?default(orderType.orderTypeId?default(""))}</td>
               <td><a href="<@ofbizUrl>orderview?orderId=${orderHeader.orderId}</@ofbizUrl>" class='buttontext'>${orderHeader.orderId}</a></td>
+              <#if orderHeader.orderName?has_content>
+                <td><a href="<@ofbizUrl>orderview?orderId=${orderHeader.orderId}</@ofbizUrl>" class='buttontext'>${orderHeader.orderName}</a></td>
+              <#else>  
+                <td></td>
+              </#if>  
               <td>
                 <div>
                   <#if displayParty?has_content>