Changeset 507


Ignore:
Timestamp:
Apr 23, 2010, 2:42:25 PM (14 years ago)
Author:
gav
Message:

Add inventoryGroup to inventory search view and export.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r489 r507  
    202202            List fields = ["name",
    203203                                "description",
     204                                "inventoryGroup",
    204205                                "unitsInStock",
    205206                                "reorderPoint",
     
    209210            Map labels = ["name": "Name",
    210211                                "description": "Description",
     212                                "inventoryGroup": "Group",
    211213                                "unitsInStock":"In Stock",
    212214                                "reorderPoint":"Reorder Point",
  • trunk/grails-app/views/inventoryItemDetailed/search.gsp

    r498 r507  
    117117                                <g:sortableColumn property="description" title="Description" params="${filterParams}" />
    118118                           
    119                                 <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" />
     119                                <g:sortableColumn property="inventoryGroup" title="Group" params="${filterParams}" />
     120                           
     121                                <g:sortableColumn property="unitsInStock" title="In Stock" params="${filterParams}" />
    120122                               
    121                                 <th>Unit Of Measure</th>
     123                                <th>Unit</th>
    122124
    123125                                <th></th>
     
    145147                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
    146148                                    ${fieldValue(bean:inventoryItemInstance, field:'description')}
     149                                </td>
     150                           
     151                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' >
     152                                    ${fieldValue(bean:inventoryItemInstance, field:'inventoryGroup')}
    147153                                </td>
    148154                           
Note: See TracChangeset for help on using the changeset viewer.