mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert "Fix price-reading crash if the price needs to be inverted."
This reverts commit 027080a830
,
and is step 2 in reverting the single-price changes.
This commit is contained in:
parent
9fc0c4667c
commit
39d43a31fa
@ -419,12 +419,12 @@
|
||||
(set! saved-price (gnc-pricedb-lookup-day pricedb
|
||||
commodity currency
|
||||
gnc-time))
|
||||
(if (null? saved-price) ;;See if there's a reversed price.
|
||||
(if (null? saved-price)
|
||||
(begin
|
||||
(set! saved-price (gnc-pricedb-lookup-day pricedb currency
|
||||
commodity gnc-time))
|
||||
(if (not (null? saved-price))
|
||||
(set! price (gnc-numeric-invert price)))))
|
||||
(set! price (gnc-numeric-invert(price))))))
|
||||
(if (not (null? saved-price))
|
||||
(if (> (gnc-price-get-source saved-price) PRICE-SOURCE-FQ)
|
||||
(begin
|
||||
|
Loading…
Reference in New Issue
Block a user