gnucash maint: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Thu Jul 25 08:27:25 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/7c9d5ee7 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e9554e39 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/54c07650 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/681e023c (commit)
	 via  https://github.com/Gnucash/gnucash/commit/7e9ec009 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/9e3aca2e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/c3eab984 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/cf6ea4c6 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a4811b3b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/c9cf35de (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e5b756fa (commit)
	 via  https://github.com/Gnucash/gnucash/commit/1387c05f (commit)
	from  https://github.com/Gnucash/gnucash/commit/49771ee9 (commit)



commit 7c9d5ee7ee5c38015b8800daa0379c5cf812ab1b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jul 25 17:44:35 2019 +0800

    Bug 797158 - gnc:make-account-sel-limited-option is not working
    
    Option was being deliberately reset to default_value every time.

commit e9554e39b448bf945fc0fa74915dd9f62e5fb150
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 21 22:56:11 2019 +0800

    [test-stress-options] improve coverage
    
    * improve documentation
    * reuse (create-test-data) for various regular transactions
    * run (create-test-invoice-data) for business invoices
    * fix max arguments which would crash for reports without options
    * if report has start-date and end-date, insert valid dates to ensure
    report runs on non-null book data.
    * enable testing of previously disabled reports
    * also dump book and invoices generated in populated book
    * modify output to show full backtrace on error: In case of test
    failure, previous would show a shortened exception name. Change to
    display full backtrace, similar to crashing in live code. Uses
    gnc:apply-with-error-handling existing API call.
    
    Also clean up code.

commit 54c076504430677d38beca09cbf6c6665f9c14d7
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Jul 22 21:24:28 2019 +0800

    [test-invoice] modified to call (create-test-invoice-data)
    
    test-invoice will call (create-business-test-data) to create the 8
    sample invoices as previously generated.

commit 681e023cd57f4dc77eccc6a95a58b729c5957541
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jul 24 22:58:40 2019 +0800

    [date-utilities][API] deprecate unused exports, add comments
    
    * deprecated:
      gnc:make-reldate-hash
      gnc:reldate-string-db
      gnc:relative-date-values
      gnc:get-relative-date-strings
    
    * remove gnc:reldate-list, unused
    
    * comment sections

commit 7e9ec00906a3100f7a8cd1a0f97df1a8eb480050
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jul 24 23:44:24 2019 +0800

    [date-utilities] tidy up gnc:make-date-interval-list

commit 9e3aca2ea9eebec58449d078590a3fd235b44678
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Jul 23 22:04:59 2019 +0800

    [balsheet-pnl] fixcrash: price-conversion with 'overall-period
    
    previously price-conversion with overall-period would fail when
    considering the pricing date for the overall-period column. Use the
    last date for the overall-period.

commit c3eab984ce152a561229f42a1f9f468f4ff62de2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Jul 23 22:04:24 2019 +0800

    [average-balance] fixcrash: asset-accounts present but no splits
    
    restore the analyze-splits function. previously it would run on an
    empty splitlist (obtained via empty accounts for example) and crash
    with div/0. this commit will break loop back to analyze-splits
    function, and only call it if the splitlist is not null.

commit cf6ea4c612e7748206b018bb279b16ade903a919
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Jul 22 19:57:30 2019 +0800

    [report-utilities] update gnc:dump-book
    
    gnc:dump-book also shows
    * account balances
    * split memo and reconcile status
    
    Exmaple:
    
    Account: <Root.A/Payable> Comm<USD> Type<A/Payable>
    n Split: 09/03/80 Amt<-$6.00> Val<-$6.00> Desc<vend-1-name> Memo<vendor-bill>
    c Split: 09/04/80 Amt<-$6.00> Val<-$6.00> Desc<emp-1-name> Memo<emp-bill>
    y Split: 09/06/80 Amt<$6.00> Val<$6.00> Desc<vend-1-name> Memo<vend-credit-note>
    f Split: 09/07/80 Amt<$6.00> Val<$6.00> Desc<emp-1-name> Memo<emp-credit-note>
    Balance: $0.00 Cleared: $0.00 Reconciled: $0.00

commit a4811b3b46230e2bbc0cafda1eb93d5bd9225d9b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 21 22:55:38 2019 +0800

    [test-extras] add (create-test-invoice-data) for tests
    
    this function creates some business data. moved from test-invoice.scm
    without the invoice-specific tests. verified all invoices/bills are
    created correctly.
    
    it returns a vector-list of the 8 invoices generated.

commit c9cf35de5de765f7769a5ac21b106e96495e9ef4
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 21 20:45:43 2019 +0800

    [commodity-utils] document gnc:case-exchange-time-fn

commit e5b756fada5464a6c81ca1445523f4b5e6f8739d
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 21 20:35:28 2019 +0800

    [commodity-utils] refactor gnc:pricelist-price-find-nearest
    
    instead of O(3n), this implementation is O(n)

commit 1387c05f4d172898429b470da362178712faf992
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 21 20:34:04 2019 +0800

    [test-commodity-utils] augment weighted-average tests
    
    this is to increase 100% coverage pricealist-nearest finder



Summary of changes:
 gnucash/gnome-utils/dialog-options.c               |   5 +-
 .../report/business-reports/test/test-invoice.scm  | 331 ++-----------------
 .../report/report-system/commodity-utilities.scm   |  48 +--
 gnucash/report/report-system/report-utilities.scm  |  25 +-
 .../report-system/test/test-commodity-utils.scm    |  34 +-
 .../report/standard-reports/average-balance.scm    | 242 +++++++-------
 gnucash/report/standard-reports/balsheet-pnl.scm   |  24 +-
 .../standard-reports/test/test-stress-options.scm  | 341 +++++++++----------
 libgnucash/app-utils/app-utils.scm                 |  10 +-
 libgnucash/app-utils/date-utilities.scm            |  60 ++--
 libgnucash/engine/test/test-extras.scm             | 361 +++++++++++++++++++++
 11 files changed, 805 insertions(+), 676 deletions(-)



More information about the gnucash-patches mailing list