GnuCash
Contact   Instructions
Bug 797245 - Smallest fraction of Vietnam Dong VND should be 1
Summary: Smallest fraction of Vietnam Dong VND should be 1
Status: NEW
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Currency and Commodity (show other bugs)
Version: 3.4
Hardware: PC Linux
: Normal minor
Target Milestone: ---
Assignee: core
QA Contact: core
URL:
Whiteboard:
Keywords:
: 797291 (view as bug list)
Depends on: 797292
Blocks:
  Show dependency tree
 
Reported: 2019-05-19 06:15 EDT by Minh Ha Duong
Modified: 2020-02-25 17:17 EST (History)
3 users (show)

See Also:


Attachments

Description Minh Ha Duong 2019-05-19 06:15:11 EDT
Hi,

  One Vietnam Dong is 1/26098 euro. The smallest bill is 500 VND , but banks will credit or debit accounts to the unit digit.

Expected behavior: Gnucash rounds up when converting currencies into VND.


Minh
Comment 1 Minh Ha Duong 2019-05-19 06:24:10 EDT
Related:
#666536   https://bugs.gnucash.org/show_bug.cgi?id=666536
#769590   https://bugs.gnucash.org/show_bug.cgi?id=769590

The ISO 4217 standard referred to in that second bug also lists VND with smallest division.     https://en.wikipedia.org/wiki/ISO_4217
Comment 2 Minh Ha Duong 2019-05-19 06:30:22 EDT
Related:
#647340   https://bugs.gnucash.org/show_bug.cgi?id=647340

The VND is listed under Tools / Security Editor when checking the currency box. The smallest fraction is not editable. I think that immutable smallest fraction is a GOOD idea. It should be set correctly.

Changing a 2 to 0 in some currency configuration file seems a trivial fix, let me know if I should propose a  diff  :)
Comment 3 John Ralls 2019-06-25 18:16:28 EDT
*** Bug 797291 has been marked as a duplicate of this bug. ***
Comment 4 John Ralls 2019-06-25 18:58:01 EDT
It depends on what "immutable" means. It's immutable in that the user can't change it, but at present it's also immutable even when the ISO4217 committee changes it as they did in September 2017.

The problem is that if we update the currency database that will change the entry for the currency but not for any accounts using the currency and not for any existing transactions unless you edit them--but it will change the way the transactions display if there are old transactions with fractions of a Dong. For example, consider if you have a the following transaction:

Date      Num Description     Transfer        Debit   Credit Balance
2005-06-24    Buy stuff       Expenses:Stuff           49.38  432.62

After changing the currency's smallest fraction in the program it will display as:

Date      Num Description     Transfer        Debit   Credit Balance
2005-06-24    Buy stuff       Expenses:Stuff           49.00  432.62

in the register.

I tested the Balance Sheet and Profit & Loss reports and they rounded to the currency's fraction, which is good, but there may be others that don't.
Comment 5 Minh Ha Duong 2019-06-26 06:53:41 EDT
I do not understand the problem.

- Rounding up all future currency conversions that GnuCash performs to the nearest VND should not have any effect on existing transactions. No retroactivity.

- There is an option to adjust the smallest fraction displayed in the "Edit Account" account dialog. VND accounts should no not display any decimal at all. My real account looks like:

Date      Num Description     Transfer        Debit   Credit       Balance
2005-06-24    Buy stuff       Expenses:Stuff          2.325.000    11.962.903

- I consider old transactions with fractions of a dong as mistakes created by Gnucash when converting currencies. I do edit them manually, but would welcome automation. Computers are good at "Select all instances of fraction VND created by Gnucash currency conversion and round."
Comment 6 John Ralls 2020-02-25 17:17:04 EST
This is fixed in response to bug 797624.

Note You need to log in before you can comment on or make changes to this bug.