create new tag
view all tags


Story summary Currency Managment
Iteration AnA08Usability
FEA AnA09S19CurrencyManagement
Story Lead  
Next Story  
Passed acceptance test No


Add option to choose LibrePlan currency in configuration window

1) Modify entity Configuration to add 2 new fields:

  • currencyCode: String (default value EUR). This will store the code of the configured Currency. For example: EUR, USD, ...
  • currencySymbol: String (default value ). The symbol for the configured currency. For example: , $, ...

2) Add a new combo after Company logo URL entry with the following information:

  • Label: Currency
  • Data (alphabetically sorted):
    EUR - 
    USD - $

This combo will show as selected the currency matching with the new field currencyCode. Once, the combo is modified and the configuration saved both fields currencyCode and currencySymbol will be updated.

In order to extract the list of currencies we should use the following code:

    public static Map<String, String> getAllCurrencies() {
        Map<String, String> currencies = new HashMap<String, String>();
        for (Locale locale : Locale.getAvailableLocales()) {
            if (StringUtils.isNotBlank(locale.getCountry())) {
                Currency currency = Currency.getInstance(locale);

        return currencies;

Replace use of euro for the configured currency

Review all the places (reports included) where or EUR or euro/s is used and replace it for the currencySymbol from configuration.

User stories

Tasks in this story

Topic revision: r1 - 26 Apr 2012 - mrego
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback