Ignore:
Timestamp:
Nov 30, 2010, 10:48:14 AM (13 years ago)
Author:
gav
Message:

Auto swap date range in all reports, part 2.

File:
1 edited

Legend:

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

    r732 r733  
    191191    def equipmentRegisterOhs = {
    192192
     193        params.calculateRegulatoryTaskCompletion = true
     194        def result = assetReportService.getEquipmentRegister(params, RCU.getLocale(request))
     195
    193196        params.reportTitle = "Equipment Register OH&S"
    194197        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
    195198        params.currentUser = authService.currentUser
    196 
    197         params.calculateRegulatoryTaskCompletion = true
    198         params.startDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.startDate)
    199         params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate)
    200 
    201         def result = assetReportService.getEquipmentRegister(params, RCU.getLocale(request))
     199        params.startDateString = result.startDateString
     200        params.endDateString = result.endDateString
    202201
    203202        if(!result.error) {
Note: See TracChangeset for help on using the changeset viewer.