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 742089 - Decimal places
Decimal places
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.6.5
Other Windows
: Normal enhancement
: ---
Assigned To: gnucash-general-maint
gnucash-general-maint
Depends on:
Blocks:
 
 
Reported: 2014-12-29 13:11 UTC by Nu
Modified: 2018-06-29 23:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of default display symbol for Iranian Rials (59.84 KB, image/jpeg)
2014-12-29 16:33 UTC, Nu
Details

Description Nu 2014-12-29 13:11:30 UTC
I use a currency with no decimal places. In account property I set the smallest fraction to "1" and it works fine in most cases. But in some places, for example when selecting a transaction to edit, 2 decimal points (**.00) appear which are sometimes confusing. [Preferences>General>Automatic decimal points] is disabled tho.
Comment 1 John Ralls 2014-12-29 15:23:20 UTC
What currency is that? Perhaps we have an error in the currency data.

Are you using that currency exclusively and did you set it as the default currency when you created the GnuCash file?
Comment 2 Nu 2014-12-29 16:33:42 UTC
Created attachment 293447 [details]
Screenshot of default display symbol for Iranian Rials

wrong symbol for Iranian Rial
Comment 3 Nu 2014-12-29 16:37:56 UTC
The crrency is Iranian Rials (IRR) which has been set as default currency at the time of creating the file.

By the way, the default display symbol for Iranian currency is also wrong. [Tools>Edit Security]. See the attachment above. The problem is that the symbol is repeated. For example if the symbol was "X", it is displayed like "XX"
Comment 4 Nu 2014-12-29 16:39:45 UTC
Sorry I forgot to mention in the previous comment; I do not exclusively use Iranian Rials. I also have some accounts in USD. No problem with USD accounts
Comment 5 John Ralls 2014-12-31 04:15:33 UTC
I checked the currency file, and it correctly shows the fraction for IRR as 1, so the right setting for smallest fraction is "commodity value".

Since you're also using USD in some accounts, are you absolutely sure that the decimal places are showing up in IRR-only transactions? If so, can you tell me a procedure to reproduce it?
Comment 6 Nu 2014-12-31 17:42:00 UTC
Decimal places normally appear in USD transactions (as it should be); but in IRR transaction they should not show up.
To reproduce:
Simply just create two IRR accounts and transfer some money from one to the other. When transaction is done, numbers are OK without decimal places. But when you select them to edit, two decimal places appear in deposit/withdrawal column.
Comment 7 John Ralls 2015-03-14 02:50:14 UTC
OK, got it. The problem was that the editing cell wasn't getting set to the account's commodity's format. Fixed in maint, it will be in version 2.6.6, to be released at the end of the month.
Comment 8 John Ralls 2018-06-29 23:37:11 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=742089. Please update any external references or bookmarks.