Ignore:
Timestamp:
May 26, 2010, 12:29:05 AM (14 years ago)
Author:
gav
Message:

Add new Inventory Stock Take reports.

File:
1 edited

Legend:

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

    r545 r546  
    88    def dateUtilService
    99    def taskReportService
     10    def inventoryReportService
    1011
    1112    def index = { redirect(action:templatePortrait,params:params) }
     
    111112    } // immediateCallouts
    112113
     114    def stockTakeOverview = {
     115
     116        params.reportTitle = "Stock Take Overview"
     117        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
     118        params.currentUser = authService.currentUser
     119
     120        def dataModel = inventoryReportService.getStockTakeOverview(params, RCU.getLocale(request))
     121
     122        // Jasper plugin controller expects data to be a Collection.
     123        chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params)
     124
     125    } // stockTakeOverview
     126
     127    def stockTakeByLocation = {
     128
     129        params.reportTitle = "Stock Take By Location"
     130        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
     131        params.currentUser = authService.currentUser
     132
     133        def dataModel = inventoryReportService.getStockTakeByLocation(params, RCU.getLocale(request))
     134
     135        // Jasper plugin controller expects data to be a Collection.
     136        chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params)
     137
     138    } // stockTakeByLocation
     139
    113140} // end of class.
Note: See TracChangeset for help on using the changeset viewer.