r22972 - gnucash/trunk/src/report/standard-reports - Bug #682800 Generated balances on Report different than calculated balances on Ledger when using "open subaccounts"

Geert Janssens gjanssens at code.gnucash.org
Fri May 10 15:06:52 EDT 2013


Author: gjanssens
Date: 2013-05-10 15:06:50 -0400 (Fri, 10 May 2013)
New Revision: 22972
Trac: http://svn.gnucash.org/trac/changeset/22972

Modified:
   gnucash/trunk/src/report/standard-reports/register.scm
Log:
Bug #682800 Generated balances on Report different than calculated balances on Ledger when using "open subaccounts"

Changes:

Part I
- bring in some more comments to ornament the code in
function (make-split-table)

Part II
In function (make-split-table), while going through the splits
- change the order of adding splits to the result table and
and updating the total collectors
Old oder:
1. add the splits to the result table
2. update the total collectors (for display at the end of the report)
New order:
1. update the total collectors with the values of the current splits
2. add the splits to the result table
Luckily this was implemented as two separate steps anyway, so this
part of the change can be done with copy/paste.

Part III
In function (make-split-table)
- change the call to (add-split-row) to also include the total-collector
- change the call to (add-other-split-rows) to also include the total-collector
In function (add-other-split-rows)
- change the definition of (add-split-row) to also include the total-collector
- change the call to (add-split-row) to also include the total-collector
In function (add-split-row)
- add the parameter "total-collector" to the function definition
- use this new parameter to display the current balance instead
of using the balance value from the split account.

Author:    Carsten Rinke <carsten.rinke at gmx.de>



More information about the gnucash-patches mailing list