gnucash master: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Fri Jul 19 12:25:07 EDT 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/35146008 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/d3f43fe3 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/6d75be3b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/d0af343e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0c433e02 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e654bd34 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/57f291af (commit)
	 via  https://github.com/Gnucash/gnucash/commit/75d5d810 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8adcacbd (commit)
	 via  https://github.com/Gnucash/gnucash/commit/dae26da0 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/fee383e8 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/74169114 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/105f5396 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/89749a1b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ec28835d (commit)
	 via  https://github.com/Gnucash/gnucash/commit/c05ba641 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/43c8b16b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/1ad4ae30 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/6c4ae890 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/560b313f (commit)
	from  https://github.com/Gnucash/gnucash/commit/cee64007 (commit)



commit 35146008414bceb581a797b65d11dd58d6a6796b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 23:09:11 2019 +0800

    [engine/test/CMakeLists] add new section for scheme tests

commit d3f43fe36048119f7c7195f52f770019fd8cf03d
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 23:09:00 2019 +0800

    [test-business-core] fix: module names were changed

commit 6d75be3b5edd8b0bf5fddddd5bc81ea105a0a18c
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 22:56:18 2019 +0800

    [test-owner-report] fix: module names were changed

commit d0af343ee4f163903ff273c579a1e47677075913
Merge: cee640077 0c433e02f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 22:41:17 2019 +0800

    Merge branch 'maint'

commit 0c433e02f7d0003c10e1244f572d0a9badd46e33
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 02:15:13 2019 +0800

    [business-core] deprecate gnc:entry-type-percent-p
    
    This function is only used once. deprecate it.

commit e654bd34af64235b5f9ac0dd8a05f6db9d8c912b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 02:24:45 2019 +0800

    [business-core] simplify functions

commit 57f291af861d6ab7a15e633acf70e890d282b043
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 19 00:03:27 2019 +0800

    [test-business-core] initial commit

commit 75d5d8106b37e3a666355c18cf8ded0f201d8027
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jul 14 21:20:52 2019 +0800

    [report-utilities] fix gnc:strify
    
    Try monetary-collector and value-collector printers earlier; output is
    fixed and will be "coll<([$200.00])>" for commodity-collectors or
    "coll<23>" for value-collectors

commit 8adcacbdd259ceab3bc49f0de650070c3f93538f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 12 21:54:53 2019 +0800

    [test-owner-report] basic tests for customer and job reports
    
    create invoices, due dates at various points in the past

commit dae26da037744a129a1bfc78b0dd62343d249bd6
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 22:55:50 2019 +0800

    [owner-report] sanitize strings in preparation for tests

commit fee383e85e441ce2a50b741ac7049b6a5075b4d3
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 23:17:43 2019 +0800

    [job-report] sanitize strings in preparation for tests

commit 74169114d55e3b25c333d43c47672e1c754ac653
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 13:42:23 2019 +0800

    [report-utilities] add gnc:dump-book and gnc:dump-invoices
    
    (gnc:dump-book)
    utility function for tests. dumps the whole book. sample output:
    
     Account: <Root> Comm<USD> Type<Asset>
    
     Account: <Root.Asset> Comm<USD> Type<Asset>
    
     Account: <Root.Asset.Bank> Comm<USD> Type<Asset>
       Split: 07/13/19 Amt<$17,479.18> Val<$17,479.18> Desc<cust-1-name>
    
     Account: <Root.VAT> Comm<USD> Type<Asset>
    
     Account: <Root.VAT.VAT-on-Sales> Comm<USD> Type<Liability>
       Split: 07/13/19 Amt<-$1,111.01> Val<-$1,111.01> Desc<cust-1-name>
    
     Account: <Root.A/Receivable> Comm<USD> Type<A/Receivable>
       Split: 07/13/19 Amt<-$17,479.18> Val<-$17,479.18> Desc<cust-1-name>
       Split: 07/13/19 Amt<$17,479.18> Val<$17,479.18> Desc<cust-1-name>
    
     Account: <Root.Income> Comm<USD> Type<Income>
       Split: 07/13/19 Amt<-$16,368.17> Val<-$16,368.17> Desc<cust-1-name>
    
    (gnc:dump-invoices)
    
    Invoice: ID<> Owner<cust-1-name>
       Date: Open<?> Post<07/13/19> Due<07/13/19>
      Entry: Date<07/13/19> Desc<taxable=N tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=N tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=N tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=Y tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=Y tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=Y tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=Y tax-inc...> Action<action> Notes<> Qty<11>
      Entry: Date<07/13/19> Desc<taxable=Y tax-inc...> Action<action> Notes<> Qty<11>
     Totals: Total<$17,479.18> TotalSubtotal<$16,368.17> TotalTax<$1,111.01>

commit 105f5396fc27cc0cd6f69511523bf03cda2cf935
Merge: 1ad4ae30b 89749a1b6
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 10:50:16 2019 +0800

    Merge branch 'maint-budget-ytd-upgrade' into maint

commit 89749a1b63dfe5987e88871fd5e7c62c9c953977
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 10:11:42 2019 +0800

    [test-budget] add tests for envelope budgeting

commit ec28835d78d7f8915aea830d5f299c0101cea04a
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jul 3 21:51:25 2019 +0800

    [budget] upgrade to support envelope budgeting
    
    merges ideas from Phil Longstaff's ytd-budget.scm report. differences
    from non-envelope budget:
    
    * envelope budgeting accumulates bgt/act/diff amounts from period=0
      e.g. selecting periods 2 to 4 means amounts must accumulate from
      period 0 to 1 (not shown) and accumulated amounts 2 to 4 (shown).
    * total column must encompass all periods from 0 to maxperiod

commit c05ba6415f55cb7114ed523e55494aa4c212a4da
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 10:27:05 2019 +0800

    [budget] compact functions in options-generator

commit 43c8b16ba53d24dc24bf76b1726f0a3daba0c747
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jul 13 10:18:44 2019 +0800

    [budget] remove unused options
    
    these options are unused
    
    * general/price-source
    * general/show-full-names?

commit 1ad4ae30be3aea7122a410a3d8371695cfb3b85a
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 12 21:54:24 2019 +0800

    [owner-report] fix html to be parsable by sxml
    
    in preparation for tests

commit 6c4ae8901257a5a1364d04428a48b51240f86e94
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 12 21:08:15 2019 +0800

    [business-options] fix whitespace

commit 560b313f8536b9e8a1bebae3e3e515887d663204
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jul 12 20:36:57 2019 +0800

    [business-options] deprecate unused option-types



Summary of changes:
 gnucash/report/report-utilities.scm                |  89 +++++-
 gnucash/report/report.scm                          |   2 +
 gnucash/report/reports/standard/budget.scm         | 125 ++++----
 gnucash/report/reports/standard/invoice.scm        |   2 +-
 gnucash/report/reports/standard/job-report.scm     |   6 +-
 gnucash/report/reports/standard/owner-report.scm   |  10 +-
 .../report/reports/standard/test/CMakeLists.txt    |   1 +
 .../report/reports/standard/test/test-budget.scm   |   7 +
 .../reports/standard/test/test-owner-report.scm    | 346 +++++++++++++++++++++
 gnucash/report/test/test-report-utilities.scm      |  22 +-
 libgnucash/app-utils/business-options.scm          |  64 ++--
 libgnucash/engine/business-core.scm                |  46 ++-
 libgnucash/engine/test/CMakeLists.txt              |  14 +
 libgnucash/engine/test/test-business-core.scm      | 300 ++++++++++++++++++
 14 files changed, 903 insertions(+), 131 deletions(-)
 create mode 100644 gnucash/report/reports/standard/test/test-owner-report.scm
 create mode 100644 libgnucash/engine/test/test-business-core.scm



More information about the gnucash-patches mailing list