Changeset 604


Ignore:
Timestamp:
Jun 21, 2010, 11:01:39 AM (14 years ago)
Author:
gav
Message:

Add custom global setting for currencyList.
Update inventoryItem views to suite.

Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r598 r604  
    388388
    389389/**
    390  * Some custom globals.
     390 * Custom application global settings.
    391391 */
    392392taskRecurringScheduleJob.repeatInterval=10
     393 // Example: ['EUR', 'XCD', 'USD', 'XOF', 'NOK', 'AUD', 'XAF', 'NZD', 'MAD', 'DKK', 'GBP', 'CHF', 'XPF', 'ILS', 'ROL', 'TRL']
     394currencyList = ['AUD']
     395
  • trunk/grails-app/views/inventoryItemDetailed/create.gsp

    r435 r604  
    132132                                                    value="${fieldValue(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount')}" />
    133133                                    <g:currencySelect name="estimatedUnitPriceCurrency"
    134                                                                         value="${inventoryItemInstance.estimatedUnitPriceCurrency}" />
     134                                                                        value="${inventoryItemInstance?.estimatedUnitPriceCurrency}"
     135                                                                        from="${grailsApplication.config.currencyList}">
     136                                    </g:currencySelect>
    135137                                </td>
    136138                            </tr>
  • trunk/grails-app/views/inventoryItemDetailed/edit.gsp

    r441 r604  
    169169                                                    value="${inventoryItemInstance.estimatedUnitPriceAmount}" />
    170170                                    <g:currencySelect name="estimatedUnitPriceCurrency"
    171                                                                         value="${inventoryItemInstance.estimatedUnitPriceCurrency}" />
     171                                                                        value="${inventoryItemInstance?.estimatedUnitPriceCurrency}"
     172                                                                        from="${grailsApplication.config.currencyList}">
     173                                    </g:currencySelect>
    172174                                </td>
    173175                            </tr>
Note: See TracChangeset for help on using the changeset viewer.