[register] [bugfix] use new price renderer

also bugfix: show price in account parent currency, instead of the
original currency.
This commit is contained in:
Christopher Lam
2020-05-13 12:25:58 +08:00
parent f9fce766c3
commit 710b559cc4

View File

@@ -245,8 +245,10 @@
(gnc:make-html-table-cell/markup
"text-cell"
(if split-info?
(gnc:make-gnc-monetary
currency (xaccSplitGetSharePrice split))
(gnc:default-price-renderer
(gnc-account-get-currency-or-parent
(xaccSplitGetAccount split))
(xaccSplitGetSharePrice split))
" "))))
(if (amount-single-col column-vector)
(addto! row-contents