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:
Geert Janssens 2015-12-04 18:50:49 +01:00
parent 5a381125ae
commit e410e05da7

View File

@ -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