Ignore:
Timestamp:
Oct 1, 2010, 3:22:05 PM (14 years ago)
Author:
gav
Message:

New report: Inventory Value.

File:
1 edited

Legend:

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

    r654 r668  
    196196    } // equipmentRegister
    197197
     198    def inventoryValueGsp = {
     199        render(view: 'inventoryValue')
     200    }
     201
     202    def inventoryValue = {
     203
     204        params.reportTitle = "Inventory Value"
     205        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
     206        params.currentUser = authService.currentUser
     207
     208        def dataModel = inventoryReportService.getInventoryValue(params, RCU.getLocale(request))
     209
     210        // Jasper plugin controller expects data to be a Collection.
     211        chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params)
     212
     213    }
     214
    198215} // end of class.
Note: See TracChangeset for help on using the changeset viewer.