From b4dc4b16bc38a4a50ca7e52d50cd4cac3edb41bd Mon Sep 17 00:00:00 2001 From: John Woodlock Date: Wed, 22 Aug 2012 15:01:46 +1000 Subject: [PATCH] retrieve currencies in name order --- .../org/mifosng/platform/api/LoanProductsApiResource.java | 2 +- .../currency/service/CurrencyReadPlatformServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mifosng-provider/src/main/java/org/mifosng/platform/api/LoanProductsApiResource.java b/mifosng-provider/src/main/java/org/mifosng/platform/api/LoanProductsApiResource.java index 6adb3ea83..6be6d5cc1 100644 --- a/mifosng-provider/src/main/java/org/mifosng/platform/api/LoanProductsApiResource.java +++ b/mifosng-provider/src/main/java/org/mifosng/platform/api/LoanProductsApiResource.java @@ -92,7 +92,7 @@ public class LoanProductsApiResource { @Produces({MediaType.APPLICATION_JSON}) public String retrieveNewLoanProductDetails(@Context final UriInfo uriInfo) { - // TODO - KW - every addition of a parameter here requires same additon in supported params used in 'apiDataConversionService' method. + // TODO - KW - every addition of a parameter here requires same addition in supported params used in 'apiDataConversionService' method. Set typicalResponseParameters = new HashSet( Arrays.asList("id", "name", "description", "fundId", "fundName", "transactionProcessingStrategyId", "transactionProcessingStrategyName", "principal", "inArrearsTolerance", "numberOfRepayments", diff --git a/mifosng-provider/src/main/java/org/mifosng/platform/currency/service/CurrencyReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosng/platform/currency/service/CurrencyReadPlatformServiceImpl.java index c368583e9..642aafdae 100644 --- a/mifosng-provider/src/main/java/org/mifosng/platform/currency/service/CurrencyReadPlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosng/platform/currency/service/CurrencyReadPlatformServiceImpl.java @@ -30,7 +30,7 @@ public class CurrencyReadPlatformServiceImpl implements CurrencyReadPlatformServ context.authenticatedUser(); - String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_organisation_currency c"; + String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_organisation_currency c order by c.name"; RowMapper rm = new CurrencyMapper(); @@ -40,7 +40,7 @@ public class CurrencyReadPlatformServiceImpl implements CurrencyReadPlatformServ @Override public List retrieveAllPlatformCurrencies() { - String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_currency c"; + String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_currency c order by c.name"; RowMapper rm = new CurrencyMapper();