r20404 - gnucash/trunk/src/report - Bug #570042: Better default for book-closing entries in Income Statement Report Options
Christian Stimming
cstim at code.gnucash.org
Sat Mar 12 10:52:21 EST 2011
Author: cstim
Date: 2011-03-12 10:52:20 -0500 (Sat, 12 Mar 2011)
New Revision: 20404
Trac: http://svn.gnucash.org/trac/changeset/20404
Modified:
gnucash/trunk/src/report/report-system/report-system.scm
gnucash/trunk/src/report/report-system/report-utilities.scm
gnucash/trunk/src/report/standard-reports/equity-statement.scm
gnucash/trunk/src/report/standard-reports/income-statement.scm
Log:
Bug #570042: Better default for book-closing entries in Income Statement Report Options
Patch by Tristan Faujour:
Proposed patch: make reports ignore book-closing entries
I chose to:
- Change the reports' default behavior to have them ignore the book-closing
entries.
- Do not change anything in reports that deal explicitly with them.
Here is the content of this patch (everything is under gnucash/src/report):
- In function gnc:account-get-trans-type-balance-interval, depending on an
argument, closing entries can be ignored (they are identified by
xaccTransGetIsClosingTxn).
- Some report utility functions are duplicated (with a "-with closing" suffix)
to provide the legacy feature.
- Equity statement and Profit & Loss reports are modified to call the
*-with-closing functions.
More information about the gnucash-patches
mailing list