mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[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:
parent
78018d8f9c
commit
38060b0258
@ -783,10 +783,8 @@ also show overall period profit & loss."))
|
||||
(gnc:make-commodity-collector))
|
||||
#:split->elt
|
||||
(lambda (s)
|
||||
(unless (xaccTransGetIsClosingTxn (xaccSplitGetParent s))
|
||||
(val-coll 'add
|
||||
(xaccTransGetCurrency (xaccSplitGetParent s))
|
||||
(xaccSplitGetValue s)))
|
||||
(val-coll 'add (xaccTransGetCurrency (xaccSplitGetParent s))
|
||||
(xaccSplitGetValue s))
|
||||
(make-datum s
|
||||
(amt->monetary (xaccSplitGetNoclosingBalance s))
|
||||
(amt->monetary (xaccSplitGetBalance s))
|
||||
|
Loading…
Reference in New Issue
Block a user