AUDIT: r17849 - gnucash/trunk/src/engine - Bug #564450: HUF currency can be divided into 100 "fillers" even though there are no coins for it

Christian Stimming cstim at cvs.gnucash.org
Wed Jan 28 15:55:05 EST 2009


Author: cstim
Date: 2009-01-28 15:55:05 -0500 (Wed, 28 Jan 2009)
New Revision: 17849
Trac: http://svn.gnucash.org/trac/changeset/17849

Modified:
   gnucash/trunk/src/engine/iso-4217-currencies.scm
Log:
Bug #564450: HUF currency can be divided into 100 "fillers" even though there are no coins for it

In Hungary the smallest Forint (HUF) coin is 5 forints, but formally we had 1,2
forint coins, and dividing FILLER coins (like cents for US, EUR, ...). They are
simply not circulated in cash usage, but the banking system still using it.
Such as the smallest transferable amount is 0.01 FORINTs (1 FILLER), and with
business it is normal to use it (as result of foreign exchange, incoming
interest rate, or many other reason).

Patch by Frank H. Ellenberger.
BP

Modified: gnucash/trunk/src/engine/iso-4217-currencies.scm
===================================================================
--- gnucash/trunk/src/engine/iso-4217-currencies.scm	2009-01-28 20:54:56 UTC (rev 17848)
+++ gnucash/trunk/src/engine/iso-4217-currencies.scm	2009-01-28 20:55:05 UTC (rev 17849)
@@ -10,6 +10,9 @@
 ;;   http://www.evertype.com/standards/iso4217/iso4217-en.html
 ;;   http://www.xe.com/iso4217.htm
 ;;   http://www.thefinancials.com/vortex/CurrencyFormats.html
+;;
+;; Learned from some bugs (543061, 564450), please keep in mind: 
+;; If there are no coins for subunits, subunits might still be in use on the paper
 
 ( "Afghanistan Afghani (old)" "afghani" "pul" "ISO4217" "AFA" "004" 100 100 ) ;; through 2003-01-02
 ( "Afghanistan Afghani" "afghani" "afghani" "ISO4217" "AFN" "971" 1 1 ) ;; from 2002-10-07
@@ -94,7 +97,7 @@
 ( "Haitian Gourde" "gourde" "centime"  "ISO4217" "HTG" "332" 100 100 )
 ( "Honduran Lempira" "lempira" "centavo"  "ISO4217" "HNL" "340" 100 100 )
 ( "Hong Kong Dollar" "dollar" "cent"  "ISO4217" "HKD" "344" 100 100 )
-( "Hungarian Forint" "forint" "forint" "ISO4217" "HUF" "348" 1 1)
+( "Hungarian Forint" "forint" "forint" "ISO4217" "HUF" "348" 100 100)
 ( "Iceland Krona" "krona" "aur" "ISO4217" "ISK" "352" 100 100 )
 ( "Indian Rupee" "rupee" "paise" "ISO4217" "INR" "356" 100 100 )
 ( "Indonesian Rupiah" "rupiah" "sen" "ISO4217" "IDR" "360" 100 100 )



More information about the gnucash-changes mailing list