gnucash master: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Thu Oct 29 18:38:01 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/f8271749 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e391cce1 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8877f862 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/7adc5e44 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/edefc9e5 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/62c76938 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/dde310bf (commit)
	 via  https://github.com/Gnucash/gnucash/commit/6525db76 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/4644f284 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8d856843 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ac09496c (commit)
	 via  https://github.com/Gnucash/gnucash/commit/923b01e2 (commit)
	from  https://github.com/Gnucash/gnucash/commit/ac34d316 (commit)



commit f82717496acacbe24e983743f28d85494f543053
Merge: ac34d31 e391cce
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 29 15:37:18 2015 -0700

    Merge branch 'big-prices'

commit e391cce1af3191300a7d8ef0cf60dde74f04fb52
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 29 15:02:09 2015 -0700

    Replace unnecessary indirection in calling gnc_pricedb_convert_balance...

commit 8877f862d35967e96208abb66f0d9a05f85c4495
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 29 15:01:26 2015 -0700

    Replace tortured attempt to implement indirect amount-value conversion.

commit 7adc5e44517984f000b790a8cfb34fbbfd5ac23b
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 29 14:13:37 2015 -0700

    Handle reversed prices from gnc_pricedb_lookup*.
    
    In several cases replaces attempting to check both directions directly. This
    had produced incorrect results because an older forward price would be preferred
    over a reverse price.

commit edefc9e57cb6a6667b1af385166564adc78b8bbe
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon Oct 26 15:46:28 2015 -0700

    Provide new function gnc_price_invert.
    
    To invert a price when it's currency is what we want to use as a commodity.
    Generalizes the source-type PRICE_SOURCE_INVOICE to PRICE_SOURCE_TEMPORARY
    for all cases like this where we don't want to save the price.

commit 62c7693860771646d0760d7ae36c192560b1536f
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Oct 23 11:38:21 2015 -0700

    Rewrite GNCPriceDB queries to check for prices in both directions.
    
    Currency exchange rates can be recorded in either direction depending upon
    which one provides the larger fraction. Queries therefore need to check
    both directions when creating the date-ordered list for selecting latest,
    nearest in time, or latest before.

commit dde310bf71d7cf048c237bf53de23756c2916c9d
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Oct 23 11:34:34 2015 -0700

    Tests for GNCPriceDB. They fail until the next commit.

commit 6525db7639a55de2f176a3d7619609c870a78fe0
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Oct 18 12:14:45 2015 -0700

    Doxygenate GncPriceDB and document explicitly which functions are bidirectional.
    
    Meaning which functions check prices in both commodities for the rate
    with the other.

commit 4644f28403ad33d356ba9a63aaddd795343f3d2d
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Sep 12 12:04:34 2015 -0700

    Remove the preference for storing prices relative to the base currency.
    
    It interferes with the preference for storing the price in the direction
    in which the price is >1 for preserving sigfigs.

commit 8d856843c3a6cc93b84ab18c75a0bd9b5766d2d3
Author: John Ralls <jralls at ceridwen.us>
Date:   Wed Sep 9 11:02:41 2015 -0700

    Recognize and handle reversed price quotes from gnc-fq-helper.
    
    Gnc-fq-helper will flip currency price quotes if the one requested is < 1
    or not available, which might mean that it's not representable in 4 digits
    to the right of the decimal.

commit ac09496c7340f2a859281b0420ecf842eba9477a
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Sep 1 14:56:19 2015 -0700

    Invert the F::Q price if there's already one in the other direction.
    
    We don't want to create prices in both directions on the same day.

commit 923b01e26952caf44f546b5c895dbb82d6ab9188
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Sep 1 14:47:40 2015 -0700

    Handle currencies with one-directional quotes and quotes < 1 in F::Q.
    
    Some currencies quotes are one-directional, so check both directions if
    necessary. Quotes with values < 1 often have too few significant digits,
    so in that case use the other direction if available.



Summary of changes:
 src/app-utils/gnc-sx-instance-model.c              |    7 +-
 src/app-utils/gnc-ui-balances.c                    |    9 +-
 src/backend/sql/gnc-price-sql.c                    |    2 +-
 src/business/business-gnome/dialog-invoice.c       |    2 +-
 src/engine/engine.i                                |    2 +-
 src/engine/gnc-pricedb-p.h                         |    1 +
 src/engine/gnc-pricedb.c                           |  856 ++++++------
 src/engine/gnc-pricedb.h                           |  293 +++-
 src/engine/test/Makefile.am                        |    1 +
 src/engine/test/test-engine-kvp-properties.c       |    2 +-
 src/engine/test/test-engine.c                      |    2 +
 src/engine/test/utest-gnc-pricedb.c                | 1408 ++++++++++++++++++++
 src/gnome-utils/dialog-transfer.c                  |   44 +-
 src/gnome-utils/gnc-tree-util-split-reg.c          |   32 +-
 src/gnome-utils/window-main-summarybar.c           |   42 +-
 src/gnome/assistant-stock-split.c                  |    5 +-
 src/gnome/dialog-price-editor.c                    |    6 +-
 src/gnome/gnc-split-reg.c                          |  150 +--
 src/gnome/gnc-split-reg2.c                         |  149 +--
 src/quotes/gnc-fq-dump                             |    9 +
 src/quotes/gnc-fq-helper.in                        |   13 +
 src/register/ledger-core/split-register.c          |   10 +-
 src/report/locale-specific/us/taxtxf.scm           |  189 +--
 src/report/standard-reports/advanced-portfolio.scm |  344 ++---
 src/report/standard-reports/portfolio.scm          |  112 +-
 src/scm/price-quotes.scm                           |   95 +-
 26 files changed, 2575 insertions(+), 1210 deletions(-)
 create mode 100644 src/engine/test/utest-gnc-pricedb.c



More information about the gnucash-patches mailing list