mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Followup on bug 682800 to fix row balances in register reports
Due to the changes done for bug 682800 the row balances for the account report no longer matched the row balances of the original register. This commit should fix that for a consistent experience.
This commit is contained in:
parent
5a381125ae
commit
e410e05da7
@ -323,6 +323,9 @@
|
||||
(gnc:make-gnc-monetary trans-currency
|
||||
(gnc-numeric-neg (xaccSplitGetValue split))))
|
||||
" ")))
|
||||
; For single account registers, use the split's cached balance to remain
|
||||
; consistent with the balances shown in the register itself
|
||||
; For others, use the cumulated balance from the totals-collector
|
||||
(if (balance-col column-vector)
|
||||
(addto! row-contents
|
||||
(if transaction-info?
|
||||
@ -331,7 +334,10 @@
|
||||
(gnc:html-split-anchor
|
||||
split
|
||||
(gnc:make-gnc-monetary
|
||||
currency (cadr (total-collector 'getpair currency #f)))))
|
||||
currency
|
||||
(if ledger-type?
|
||||
(cadr (total-collector 'getpair currency #f))
|
||||
(xaccSplitGetBalance split)))))
|
||||
" ")))
|
||||
|
||||
(gnc:html-table-append-row/markup! table row-style
|
||||
|
Loading…
Reference in New Issue
Block a user