- Timestamp:
- Mar 16, 2010, 12:02:09 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryMovementDetailedController.groovy
r406 r442 33 33 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_InventoryManager', 'ROLE_InventoryUser']) 34 34 def listInventoryMovements = { 35 def inventoryItemInstance = InventoryItem.get(params.inventoryItem.id) 35 def inventoryItemInstance 36 if(params.id) 37 inventoryItemInstance = InventoryItem.get(params.id) 38 else if(params.inventoryItem?.id) 39 inventoryItemInstance = InventoryItem.get(params.inventoryItem.id) 36 40 37 41 if(!inventoryItemInstance) { 38 42 flash.message = "Inventory item not found with id ${params.id}" 39 43 redirect(controller:'inventoryItemDetailed', action: 'search') 44 return 40 45 } 41 46 -
trunk/grails-app/views/inventoryMovementDetailed/listInventoryMovements.gsp
r224 r442 26 26 <tr> 27 27 28 <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" />28 <g:sortableColumn action="listInventoryMovements" property="quantity" title="Quantity" params="[id: inventoryItemInstance.id]"/> 29 29 30 <g:sortableColumn action="listInventoryMovements" property="inventoryMovementType" title="Movement Type" />30 <g:sortableColumn action="listInventoryMovements" property="inventoryMovementType" title="Movement Type" params="[id: inventoryItemInstance.id]" /> 31 31 32 <g:sortableColumn action="listInventoryMovements" property="date" title="Date" />32 <g:sortableColumn action="listInventoryMovements" property="date" title="Date" params="[id: inventoryItemInstance.id]" /> 33 33 34 <g:sortableColumn action="listInventoryMovements" property="person" title="Person" />34 <g:sortableColumn action="listInventoryMovements" property="person" title="Person" params="[id: inventoryItemInstance.id]" /> 35 35 36 36 <th></th> … … 62 62 </div> 63 63 <div class="paginateButtons"> 64 <g:paginate action="listInventoryMovements" id="${inventoryItemInstance ?.id}" total="${inventoryMovementListTotal}" />64 <g:paginate action="listInventoryMovements" id="${inventoryItemInstance.id}" total="${inventoryMovementListTotal}" /> 65 65 </div> 66 66 </div>
Note: See TracChangeset
for help on using the changeset viewer.