Ignore:
Timestamp:
Jun 29, 2010, 10:38:36 PM (14 years ago)
Author:
gav
Message:

Show inventory item and comments on purchase search view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryItemPurchaseDetailed/search.gsp

    r615 r618  
    8282                            <tr>
    8383                                <g:sortableColumn property="purchaseOrderNumber"
    84                                                                     title="Order #" params="${filterParams}"  />
     84                                                                    title="Order #"
     85                                                                    params="${filterParams}"  />
    8586                                <g:sortableColumn property="date"
    86                                                                     title="Date" params="${filterParams}" />
     87                                                                    title="Date"
     88                                                                    params="${filterParams}" />
     89                                <g:sortableColumn property="inventoryItem"
     90                                                                    title="Inventory Item"
     91                                                                    params="${filterParams}" />
    8792                                <g:sortableColumn property="costCode"
    88                                                                     title="Cost Code" params="${filterParams}" />
     93                                                                    title="Cost Code"
     94                                                                    params="${filterParams}" />
    8995                                <g:sortableColumn property="quantity"
    90                                                                     title="Quantity" params="${filterParams}" />
     96                                                                    title="Quantity"
     97                                                                    params="${filterParams}" />
    9198                                <g:sortableColumn property="orderValueAmount"
    92                                                                     title="Order \$" params="${filterParams}" />
    93                                 <g:sortableColumn property="invoiceNumber"
    94                                                                     title="Invoice Number" params="${filterParams}" />
     99                                                                    title="Order \$"
     100                                                                    params="${filterParams}" />
    95101                                <g:sortableColumn property="inventoryItemPurchaseType"
    96                                                                     title="Type" params="${filterParams}" />
     102                                                                    title="Type"
     103                                                                    params="${filterParams}" />
    97104                                <th>
    98105                                    <img  src="${resource(dir:'images/skin',file:'database_go_grey.png')}" alt="Show" title="Show" />
     
    117124                                    </td>
    118125                                    <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}?returnTo=search"'>
    119                                         ${fieldValue(bean:purchase, field:'costCode')}
     126                                        <b>${fieldValue(bean:purchase, field:'inventoryItem')}</b><br/>
     127                                        ${purchase.inventoryItem.description?.encodeAsHTML()}
     128                                    </td>
     129                                    <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}?returnTo=search"'>
     130                                        <b>${fieldValue(bean:purchase, field:'costCode')}</b><br/>
     131                                        <g:if test="${purchase.invoiceNumber}">
     132                                            Invoice # ${fieldValue(bean:purchase, field:'invoiceNumber')}<br/>
     133                                        </g:if>
     134                                        ${fieldValue(bean:purchase, field:'comment')}
    120135                                    </td>
    121136                                    <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}?returnTo=search"'>
     
    125140                                        ${fieldValue(bean:purchase, field:'orderValueAmount')}
    126141                                        ${fieldValue(bean:purchase, field:'orderValueCurrency')}
    127                                     </td>
    128                                     <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}?returnTo=search"'>
    129                                         ${fieldValue(bean:purchase, field:'invoiceNumber')}
    130142                                    </td>
    131143                                    <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}?returnTo=search"'>
Note: See TracChangeset for help on using the changeset viewer.