GNOME Bugzilla – Bug 568945
The gnc_pricedb_convert_balance_... methods should look for the reciprocal of the exchange rate
Last modified: 2018-06-29 22:16:34 UTC
Please describe the problem: If the price DB contains the reciprocal of the exchange rate that gnc_pricedb_convert_balance_nearest_price, gnc_pricedb_convert_balance_latest_price, and gnc_pricedb_convert_balance_latest_before need to do their conversion they don't find it and return zero. Steps to reproduce: 1. Open the attached file GBPXAU.xac 2. Set the reporting currency to XAU 3. Note that in the Accounts page, the totals and balances in XAU are all zero Actual results: All the totals and balances in XAU are zero Expected results: Some of the should be small non-zero numbers Does this happen every time? Yes Other information: I'll attach a patch that fixes this
Created attachment 127143 [details] Test file to demonstrate the problem Open this file and set the reporting currency to XAU. All the XAU totals are zero in the Accounts page.
Created attachment 127144 [details] [review] Patch to fix the problem
Created attachment 127145 [details] Test file to reproduce the problem Open this file and set the reporting currency to XAU. Not that all the XAU values in the Accounts page are zero. Resubmitted since telling Bugzilla that this is an XML file (which it is) badly confused it. Let's pretend it's not XML.
Trunk, r17850, waiting for back-port. Thanks!
2.2-branch, r17863
*** Bug 581192 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=568945. Please update any external references or bookmarks.