mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 09:49:06 -06:00
[register] price shown in transaction currency rather than account's parent currency
error in commit 710b559cc4
xaccSplitGetSharePrice is priced in the transaction
currency. gnc-account-get-currency-or-parent would only output the
correct price currency if the chart of accounts was set up properly.
also: for Dr/Cr display, small modification to ensure a "$0.00" is
rendered when the split value is neither positive nor negative.
This commit is contained in:
1 parent
86dc6dcb96
commit
bbde69ffcd
1 file changed
+2
-4
@@ -246,9 +246,7 @@
|
||||
"number-cell"
|
||||
(if split-info?
|
||||
(gnc:default-price-renderer
|
||||
(gnc-account-get-currency-or-parent
|
||||
(xaccSplitGetAccount split))
|
||||
(xaccSplitGetSharePrice split))
|
||||
trans-currency (xaccSplitGetSharePrice split))
|
||||
" "))))
|
||||
(if (amount-single-col column-vector)
|
||||
(addto! row-contents
|
||||
@@ -294,7 +292,7 @@
|
||||
" ")))
|
||||
(if (value-credit-col column-vector)
|
||||
(addto! row-contents
|
||||
(if (and split-info? (negative? (xaccSplitGetValue split)))
|
||||
(if (and split-info? (not (positive? (xaccSplitGetValue split))))
|
||||
(gnc:make-html-table-cell/markup
|
||||
"number-cell"
|
||||
(gnc:make-gnc-monetary trans-currency
|
||||
|
||||
Reference in new issue
Block a user