Bug 603183 - Equity statement shows incorrect changes

Apply the new function gnc:account-get-total-flow for the "Withdrawal" calculation.

Depends on the patches for
- report-utilities.scm
- report-system.scm

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23158 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2013-09-03 14:02:35 +00:00
parent 609b60bea3
commit 6ee4202fca

View File

@ -541,12 +541,9 @@
(set! net-investment (gnc:make-commodity-collector)) ;; 0
(net-investment 'minusmerge neg-pre-closing-equity #f);; > 0
(net-investment 'merge neg-start-equity-balance #f) ;; net increase
(set! withdrawals (gnc:make-commodity-collector))
(withdrawals 'merge (gnc:account-get-pos-trans-total-interval
equity-accounts closing-pattern
start-date-tp end-date-tp)
#f)
(set! withdrawals (gnc:account-get-total-flow 'in equity-accounts start-date-tp end-date-tp))
(set! investments (gnc:make-commodity-collector))
(investments 'merge net-investment #f)
(investments 'merge withdrawals #f)