GNOME Bugzilla – Bug 564450
HUF currency handling incorrect as 1HUF divided into 100FILLERs (annoying auto rounding)
Last modified: 2018-06-29 22:13:46 UTC
Please describe the problem: 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). Steps to reproduce: 1. open an account in HUF 2. try to enter a value like: 0.91 3. it will book as: 1.00 Actual results: no matter even is i set the smallest 1/100 in account properties. It will auto rounding. Expected results: auto rounding is incorrect for HUF account balances, and entries. Does this happen every time? yes, it is inherited from HUF SCU Other information: WIKI decription of hungarian forint system: http://en.wikipedia.org/wiki/Hungarian_forint Hungarian Law (2008 year, III., T4856): in HUNGARIAN only (not yet found official english traslations yet): http://www.pmcode.hu/portal/images/T4856.pdf http://www.forint.hu/resource.aspx?ResourceID=T4856_kihirdetesi
This issue was discussed in https://lists.gnucash.org/pipermail/gnucash-user/2008-December/thread.html#27582. It is similar to Bug 543061 – Fractional not working in IDR (rupiah) currency. The Patch should be something like in src/engine/iso-4217-currencies.scm line ~97 -( "Hungarian Forint" "forint" "forint" "ISO4217" "HUF" "348" 1 1) +( "Hungarian Forint" "forint" "filler" "ISO4217" "HUF" "348" 100 100) I am sorry for the inconvenience, but I am out of town and without a dev environment. I am not shure, if we should apply the accent in "fillér" as in wikipedia.
Created attachment 126734 [details] [review] iso-4217-currencies.patch Ok, here is a clean patch. I think, it should be backported.
Created attachment 126817 [details] [review] enhanced_iso_4217-currencies.patch The enhanced version puts a comment in the file header, to avoid such bugs in the future.
Trunk, r17849, waiting for back-port. Thanks a lot!
2.2-branch, r17862
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=564450. Please update any external references or bookmarks.