gnucash maint: Multiple changes pushed
Christopher Lam
clam at code.gnucash.org
Thu May 16 07:26:40 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/f779b817 (commit)
via https://github.com/Gnucash/gnucash/commit/0ecfc911 (commit)
from https://github.com/Gnucash/gnucash/commit/75a919b2 (commit)
commit f779b81719d86ba6082389dff26e96d3a6e03437
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Thu May 16 18:25:58 2019 +0800
[balsheet-pnl] unrealized-gain calculator bugfix
The unrealized-gain calculator was flawed.
The fixed function is copied from balance-sheet.scm and adapted to
balsheet-pnl.scm vars.
This fixed function matches unrealized-gains amounts from
balance-sheet.scm
commit 0ecfc911cae0d1987228c06d1bfaba23aca56e63
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue May 14 22:16:07 2019 +0800
[balsheet-pnl] chart: set report-currency to most used currency
This is a usability upgrade.
This balsheet-pnl report does *not* enforce a report currency; it can
print, process and multilevel-total monetary amounts in their original
currency.
But a linked chart needs one. By default it uses global
report_currency which may not match the book's most used currencies.
This commit will scan the accountlist, retrieve the most common
currency used, and set it as the report-currency for the linked
chart.
The book-main-currency function *may* be upgraded to
report-utilities.scm in the future.
Case example:
* set gnc_default_report_currency to USD
* load book.gnucash with majority accounts in EUR, some in GBP
* run balsheet-pnl.scm - shows EUR and GBP amounts and mixed totals.
* click link to barchart - would not succeed because all amounts
converted to USD0.00. this commit will ensure barchart's target
currency is set to EUR thereby showing useful chart.
Summary of changes:
gnucash/report/standard-reports/balsheet-pnl.scm | 38 +++++++++++++++++-------
1 file changed, 27 insertions(+), 11 deletions(-)
More information about the gnucash-patches
mailing list