mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Always use the price we display to calculate the current value of an account.
This commit is contained in:
parent
985fecb032
commit
f8139efad1
@ -438,12 +438,13 @@
|
||||
)
|
||||
|
||||
(define (my-exchange-fn fromunits tocurrency)
|
||||
(if (and use-txn
|
||||
(gnc-commodity-equiv currency tocurrency)
|
||||
(if (and (gnc-commodity-equiv currency tocurrency)
|
||||
(gnc-commodity-equiv (gnc:gnc-monetary-commodity fromunits) commodity))
|
||||
(gnc:make-gnc-monetary tocurrency
|
||||
(gnc-numeric-mul (gnc:gnc-monetary-amount fromunits)
|
||||
(if use-txn
|
||||
(gnc:gnc-monetary-amount price)
|
||||
(gnc-price-get-value price))
|
||||
currency-frac GNC-RND-ROUND))
|
||||
(exchange-fn fromunits tocurrency)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user