Advanced Portfolio: Remove the "latest before" price source.

It's not implemented and could easily be added back if it ever is implemented.
This will break any saved report using this price source, but they are
broken already.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23718 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2014-01-19 07:10:31 +00:00
parent e4a3232e3e
commit dd1dde78a4

View File

@ -79,9 +79,6 @@
(vector 'pricedb-nearest
(N_ "Nearest in time")
(N_ "The price recorded nearest in time to the report date."))
(vector 'pricedb-latest-before
(N_ "Most recent to report")
(N_ "The most recent recorded price before report date."))
)))
(add-option
@ -902,11 +899,7 @@
((pricedb-nearest)
(lambda (foreign domestic date)
(find-price (gnc-pricedb-lookup-nearest-in-time-any-currency
pricedb foreign (timespecCanonicalDayTime date)) domestic)))
((pricedb-latest-before)
(lambda (foreign domestic date)
(gnc-pricedb-lookup-latest-before
pricedb foreign domestic (timespecCanonicalDayTime date))))))
pricedb foreign (timespecCanonicalDayTime date)) domestic)))))
(headercols (list (_ "Account")))
(totalscols (list (gnc:make-html-table-cell/markup "total-label-cell" (_ "Total"))))
(sum-total-moneyin (gnc-numeric-zero))