After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564450 - HUF currency handling incorrect as 1HUF divided into 100FILLERs (annoying auto rounding)
HUF currency handling incorrect as 1HUF divided into 100FILLERs (annoying aut...
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.2.x
Other All
: Normal normal
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on:
Blocks: backport
 
 
Reported: 2008-12-14 08:27 UTC by Zoltan Levardy
Modified: 2018-06-29 22:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
iso-4217-currencies.patch (796 bytes, patch)
2009-01-19 02:28 UTC, Frank H. Ellenberger
none Details | Review
enhanced_iso_4217-currencies.patch (1.29 KB, patch)
2009-01-20 03:36 UTC, Frank H. Ellenberger
committed Details | Review

Description Zoltan Levardy 2008-12-14 08:27:15 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
Comment 1 Frank H. Ellenberger 2008-12-19 12:52:10 UTC
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.

Comment 2 Frank H. Ellenberger 2009-01-19 02:28:36 UTC
Created attachment 126734 [details] [review]
iso-4217-currencies.patch

Ok, here is a clean patch.
I think, it should be backported.
Comment 3 Frank H. Ellenberger 2009-01-20 03:36:11 UTC
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.
Comment 4 Christian Stimming 2009-01-28 20:56:41 UTC
Trunk, r17849, waiting for back-port. Thanks a lot!
Comment 5 Christian Stimming 2009-01-31 10:48:06 UTC
2.2-branch, r17862
Comment 6 John Ralls 2018-06-29 22:13:46 UTC
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.