Changeset 965 for trunk/grails-app


Ignore:
Timestamp:
Jul 19, 2012, 5:10:21 PM (12 years ago)
Author:
gav
Message:

Arrange and add some fields to the InventoryItemPurchase search page export function.

File:
1 edited

Legend:

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

    r913 r965  
    154154            response.contentType = ConfigurationHolder.config.grails.mime.types[params.format]
    155155            response.setHeader("Content-disposition", "attachment; filename=Purchases.${params.extension}")
    156             List fields = ["purchaseOrderNumber", "date", "costCode", "quantity", "orderValueAmount", "invoiceNumber",
     156            List fields = ["quantity", "inventoryItem.description", "inventoryItem.name", "orderValueAmount",
     157                            "orderValueCurrency", "purchaseOrderNumber", "date", "costCode", "invoiceNumber",
    157158                                    "inventoryItemPurchaseType"]
    158             Map labels = ["purchaseOrderNumber": "Order Number", "date": "Date", "costCode": "Cost Code",
    159                                     "quantity": "Quantity", "orderValueAmount": "Order \$", "invoiceNumber": "Invoice Number",
    160                                     "inventoryItemPurchaseType": "Type"]
     159            Map labels = ["quantity": "Quantity", "inventoryItem.description": "Description",
     160                            "inventoryItem.name": "Name", "orderValueAmount": "Order Value",
     161                            "orderValueCurrency": "Currency",
     162                            "purchaseOrderNumber": "P/Order Number", "date": "Date", "costCode": "Cost Code",
     163                            "invoiceNumber": "Invoice Number",
     164                            "inventoryItemPurchaseType": "Type"]
    161165            Map formatters = [ date: dateFmt]
    162166            Map parameters = [title: title, separator: ","]
Note: See TracChangeset for help on using the changeset viewer.