GNOME Bugzilla – Bug 733283
[PATCH] Loss of fractions when importing OFX investment transactions
Last modified: 2018-06-29 23:32:03 UTC
Created attachment 280894 [details] [review] Use transaction's currency to convert transaction amount to gnc_numeric. When importing OFX investment transactions, the "transaction amount" is converted to a gnc_numeric using the security's commodity. This value is later used in xaccSplitSetValue() which "sets the value of this split in the transaction's commodity". This can result in the rounding of this amount if the commodity's fraction is 1/1. This patch uses the transaction's currency to do the gnc_numeric conversion.
Comment on attachment 280894 [details] [review] Use transaction's currency to convert transaction amount to gnc_numeric. Thank you for your patch. It looks good and passes all tests, so I have applied it to the maint branch. It will be included in the upcoming 2.6.4 release. Thanks again and I'm already looking forward to your next contribution!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=733283. Please update any external references or bookmarks.