gnucash maint: Multiple changes pushed

Robert Fewell bobit at code.gnucash.org
Fri Apr 23 06:57:06 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/49102c7a (commit)
	 via  https://github.com/Gnucash/gnucash/commit/87285f94 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e535ba54 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e75308e6 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/d3bd7fda (commit)
	 via  https://github.com/Gnucash/gnucash/commit/4a491f7c (commit)
	 via  https://github.com/Gnucash/gnucash/commit/05507008 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b54c30e0 (commit)
	from  https://github.com/Gnucash/gnucash/commit/ab80a0c4 (commit)



commit 49102c7ac2693c5408ac28f8be8d32be4957bb86
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Apr 22 18:36:42 2021 -0700

    Python Bindings: Provide a deprecated GncPriceDB.lookup_latest_before_t64.
    
    To avoid breaking user scripts.

commit 87285f945e082314ff8c25c2a90fcc4560a15708
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Thu Apr 22 13:48:25 2021 +0100

    Update gnucash_core.py with gnc-pricedb function name change

commit e535ba5411f3cd583b7a6e30a86f7d025d756c54
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Thu Apr 22 12:54:50 2021 +0100

    Change some functions to use const gnc_commodity for gnc_pricedb

commit e75308e6842644645aba1f593b260b4b6f6a3bcd
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Thu Apr 22 11:42:26 2021 +0100

    Rename a couple of gnc-pricedb functions that have not been used.
    
    To be more consistent change gnc_pricedb_lookup_latest_before_t64 and
    gnc_pricedb_lookup_latest_before_any_currency_t64 to be of the form
    '_nearest_before_' and add a missing utest.

commit d3bd7fda61aefc5a4f15041454f0179c42bba3a7
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Wed Apr 21 14:33:56 2021 +0100

    Add unit tests for new gnc-pricedb functions

commit 4a491f7cdee5cdc3706c3c2b47c8ed11689ef3c8
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Wed Apr 21 14:33:19 2021 +0100

    Change a couple of docbook definitions in gnc-pricdb.h

commit 05507008c5cbce6fdfeb8f4daf6c2c409ced7de9
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Wed Apr 21 14:32:40 2021 +0100

    Add retrieval functions for price before the date given
    
    Add a new function, gnc_pricedb_convert_balance_nearest_before_price_t64
    that retrieves the balance using the last price dated before a
    specified date like today for the preset value. This uses another new
    function gnc_pricedb_get_nearest_before_price to do the retrieval.

commit b54c30e03ddaf65c93c5f2cd1e7386a62c2b7772
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Tue Apr 20 13:29:57 2021 +0100

    Bug 798148 - Chart of Accounts page Present(xxx) value wrong
    
    If for some reason you have price information in the future for a
    security, the present value is based on the price retrieved for the
    greatest date and not a price which is before the current date.
    
    To fix this use the 'xaccAccountGetBalanceAsOfDateInCurrencyRecursive'
    function.



Summary of changes:
 bindings/python/deprecation.py             |  29 +++++-
 bindings/python/gnucash_core.py            |  14 ++-
 libgnucash/engine/Account.cpp              |  17 ++--
 libgnucash/engine/Account.h                |   4 +-
 libgnucash/engine/gnc-pricedb.c            |  88 +++++++++++++-----
 libgnucash/engine/gnc-pricedb.h            |  62 ++++++++++---
 libgnucash/engine/test/utest-gnc-pricedb.c | 142 ++++++++++++++++++++++++++---
 7 files changed, 293 insertions(+), 63 deletions(-)



More information about the gnucash-patches mailing list