gnucash maint: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Tue Oct 16 12:22:08 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/1244ebb3 (commit)
via https://github.com/Gnucash/gnucash/commit/23d2ed70 (commit)
via https://github.com/Gnucash/gnucash/commit/b1f03ecd (commit)
via https://github.com/Gnucash/gnucash/commit/3f2a9022 (commit)
via https://github.com/Gnucash/gnucash/commit/a86d17e7 (commit)
via https://github.com/Gnucash/gnucash/commit/ab97eed9 (commit)
via https://github.com/Gnucash/gnucash/commit/cacb15c3 (commit)
via https://github.com/Gnucash/gnucash/commit/53cab269 (commit)
via https://github.com/Gnucash/gnucash/commit/caa3807f (commit)
via https://github.com/Gnucash/gnucash/commit/4102e700 (commit)
via https://github.com/Gnucash/gnucash/commit/9d25b25b (commit)
from https://github.com/Gnucash/gnucash/commit/08e28bfc (commit)
commit 1244ebb396e6445a69b3299a904274d8eee0ad4f
Merge: 08e28bf 23d2ed7
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Oct 16 09:15:12 2018 -0700
Merge branch Chris Lam's 'maint-net-charts' into maint.
commit 23d2ed708e95334606b1dbb99592c402c93dbfb1
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Oct 2 07:27:27 2018 +0800
[net-charts] remove doubles. send pure numbers to charts.
commit b1f03ecd9e1b65774263bf5440a1dcaf31c12cd7
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Oct 2 06:52:51 2018 +0800
[net-charts] rename variables to mathematical terms
This report seems to have evolved from a pure asset-liability
chart. It handles income-expense too, so rename to minuend-subtrahend
to be generic.
Also report percentages done.
commit 3f2a9022bf75b963be4ff3a5dc3f5c606db7bd96
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sun Sep 23 10:03:13 2018 +0800
[net-charts] simplify date-list variables
dates-list is now a list of time64 for both inc-exp and net-worth
therefore we can combine the strings.
commit a86d17e77df601f4453950801aa85065f8c2652b
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Sep 25 09:59:54 2018 +0800
[net-charts] modify process-datelist to cycle balancelist once
This will deconstruct process-datelist to not call the utility
(gnc:accounts-get-comm-total-*) functions which are still slow,
because they will cycle through the balancelist for each account. In a
large enough report, the balance list may be thousands of entries
long, and we don't want to cycle through them every time.
This commit will loop all so that the balances are cycled once only.
commit ab97eed97989754637b9f90cfcbb40dd5366b883
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Fri Sep 21 04:36:30 2018 +0800
[net-charts] modify process-datelist to use account-balances
This will retrieve the cached balances in account-balances, rather
than calling (gnc:account-get-comm-balance-interval)
or (gnc:account-get-comm-balance-at-date) which are very expensive
because they will call xaccAccountGetBalanceAsOfDate which will scan
the account splitlist every time.
commit cacb15c3f3d1e9762d158df405151cf0d339a3eb
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Fri Sep 21 02:38:05 2018 +0800
[net-charts] create account->balancelist
This function will scan the splitlist for account, and build a list of
balances at the dates specified in the dates-list variable.
commit 53cab269f467cf73ff7e20cde797cd08212b9435
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Wed Sep 19 10:16:06 2018 +0800
[test-charts] add basic test for net-charts amounts & dates
This is similar to test-standard-net-linechart but designed to test
date boundaries. Creates book with following entries in bank accounts,
and calculates amounts at each date boundary.
Bank1 Bank2 Bank3
05/05/69 $25
01/01/1970
05/01/70 $25
12/01/70 $10
18/01/70 $15 $50
01/02/1970
18/02/70 $50
01/03/1970
03/03/70 $200
01/04/1970
15/04/1970
commit caa3807f05c48ffd124b1946537bf374204e6756
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Fri Sep 21 10:36:43 2018 +0800
Revert "Revert "[net-charts] deoptimize accounts-list""
This reverts commit 70bc472ffe93b80ad12db56e75332d09d3b0c1df.
commit 4102e7007e0ac1f6cdc9bead7189c6caedcc3b30
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Wed Sep 26 05:04:02 2018 +0800
[test-report-utilities] gnc:strify tests
commit 9d25b25be30b8ac15b5423e5e02f913142d1a7e9
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Wed Sep 19 11:34:07 2018 +0800
[report-utilities] add (gnc:strify) and (gnc:pk) for debugging
The (gnc:strify) function will take an object, and try various methods
to display a useful output. Instead of a cryptic "#<swig-pointer
Split * 55a7079b2660> () # ?" message it can show
"Split<d:02/05/2018,acc:Bank1,amt:$20,val:$20>"
The (gnc:pk) function is a debugging tool. It will dump all arguments
via gnc:strify to console and return the last argument. In addition,
it will print the time stamp since the procedure was defined, and the
delta time since the last (gnc:pk) call.
(gnc:pk "call weird-fn with " acc " = " (weird-fn acc))
(gnc:pk "call another-fn =" (another-fn))
[d2.3243 t2.3243] call weird-fn with Acc<Bank> = Mon<$25.00>
[d0.1000 t2.4243] call another-fn = #t
This would suggest that (weird-fn acc) ran for 0.1 seconds, and
returned a gnc:gnc-monetary object.
Summary of changes:
gnucash/report/report-system/report-system.scm | 2 +
gnucash/report/report-system/report-utilities.scm | 87 +++++++
.../report-system/test/test-report-utilities.scm | 28 ++
gnucash/report/standard-reports/net-charts.scm | 286 ++++++++++++---------
.../report/standard-reports/test/test-charts.scm | 69 ++++-
5 files changed, 351 insertions(+), 121 deletions(-)
More information about the gnucash-patches
mailing list