[balsheet-pnl] value-collector doesn't need to ignore closing

The value-collector is only used to tally account balances for
asset&liability accounts. These accounts never have closing
entries. No need to test closing property.
This commit is contained in:
Christopher Lam 2020-06-13 22:51:15 +08:00
parent 78018d8f9c
commit 38060b0258

View File

@ -783,10 +783,8 @@ also show overall period profit & loss."))
(gnc:make-commodity-collector)) (gnc:make-commodity-collector))
#:split->elt #:split->elt
(lambda (s) (lambda (s)
(unless (xaccTransGetIsClosingTxn (xaccSplitGetParent s)) (val-coll 'add (xaccTransGetCurrency (xaccSplitGetParent s))
(val-coll 'add (xaccSplitGetValue s))
(xaccTransGetCurrency (xaccSplitGetParent s))
(xaccSplitGetValue s)))
(make-datum s (make-datum s
(amt->monetary (xaccSplitGetNoclosingBalance s)) (amt->monetary (xaccSplitGetNoclosingBalance s))
(amt->monetary (xaccSplitGetBalance s)) (amt->monetary (xaccSplitGetBalance s))