[gnumeric] Update EURO and EUROCONVERT with currencies added in 2207 to 2009.



commit fa53c98dd09725dd11f79111f92e12de2aa0effa
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Thu Dec 3 19:21:29 2009 -0700

    Update EURO and EUROCONVERT with currencies added in 2207 to 2009.
    
    2009-12-03  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* functions.c (help_euro): add currencies added to
    	  the euro in 2007 to 2009
    	(one_euro): ditto

 NEWS                             |    3 +++
 plugins/fn-financial/ChangeLog   |    6 ++++++
 plugins/fn-financial/functions.c |   22 ++++++++++++++++++++--
 3 files changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 4027ca4..8d31229 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 Gnumeric 1.9.17
 
+Andreas:
+	* Update EURO and EUROCONVERT with currencies added in 2207 to 2009.
+
 Morten:
 	* Elminate use of "float".
 	* Fix selection problem.  [#601107]
diff --git a/plugins/fn-financial/ChangeLog b/plugins/fn-financial/ChangeLog
index 03f22ed..48ecdb5 100644
--- a/plugins/fn-financial/ChangeLog
+++ b/plugins/fn-financial/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-03  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* functions.c (help_euro): add currencies added to 
+	  the euro in 2007 to 2009
+	(one_euro): ditto
+
 2009-11-29  Morten Welinder <terra gnome org>
 
 	* Release 1.9.16
diff --git a/plugins/fn-financial/functions.c b/plugins/fn-financial/functions.c
index 4c2d0f2..47288a7 100644
--- a/plugins/fn-financial/functions.c
+++ b/plugins/fn-financial/functions.c
@@ -1980,6 +1980,7 @@ static GnmFuncHelp const help_euro[] = {
 	{ GNM_FUNC_HELP_NOTE, F_("@{currency} must be one of "
 				 "ATS (Austria), "
 				 "BEF (Belgium), "
+				 "CYP (Cyprus), "
 				 "DEM (Germany), "
 				 "ESP (Spain), "
 				 "EUR (Euro), "
@@ -1989,8 +1990,11 @@ static GnmFuncHelp const help_euro[] = {
 				 "IEP (Ireland), "
 				 "ITL (Italy), "
 				 "LUF (Luxembourg), "
-				 "NLG (The Netherlands), or "
-				 "PTE (Portugal).") },
+				 "MTL (Malta), "
+				 "NLG (The Netherlands), "
+				 "PTE (Portugal), "
+				 "SIT (Slovenia), or "
+				 "SKK (Slovakia).") },
 	{ GNM_FUNC_HELP_NOTE, F_("This function is not likely to be useful anymore.") },
 	{ GNM_FUNC_HELP_EXAMPLES, "=EURO(\"DEM\")" },
         { GNM_FUNC_HELP_SEEALSO, "EUROCONVERT"},
@@ -2013,6 +2017,10 @@ one_euro (char const *str)
 		if (strncmp ("BEF", str, 3) == 0)
 			return GNM_const (40.3399);
 		break;
+	case 'C':
+		if (strncmp ("CYP", str, 3) == 0)
+			return GNM_const (0.585274);
+		break;
 	case 'D':
 		if (strncmp ("DEM", str, 3) == 0)
 			return GNM_const (1.95583);
@@ -2043,6 +2051,10 @@ one_euro (char const *str)
 		if (strncmp ("LUX", str, 3) == 0)
 			return GNM_const (40.3399);
 		break;
+	case 'M':
+		if (strncmp ("MTL", str, 3) == 0)
+			return GNM_const (0.429300);
+		break;
 	case 'N':
 		if (strncmp ("NLG", str, 3) == 0)
 			return GNM_const (2.20371);
@@ -2051,6 +2063,12 @@ one_euro (char const *str)
 		if (strncmp ("PTE", str, 3) == 0)
 			return GNM_const (200.482);
 		break;
+	case 'S':
+		if (strncmp ("SIT", str, 3) == 0)
+			return GNM_const (239.640);
+		else if (strncmp ("SKK", str, 3) == 0)
+			return GNM_const (30.1260);
+		break;
 	default:
 		break;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]