[budget-flow] fixcrash: exchange-fn needs to specify exchange date

because some exchange-fn *do* require date eg. pricedb-nearest. use
the period end-date for the exchange date.
This commit is contained in:
Christopher Lam 2019-10-03 00:01:47 +08:00
parent 3452c33cdf
commit 34c677d70d

View File

@ -276,7 +276,8 @@
;; calculate the exchange rates
(exchange-fn (gnc:case-exchange-fn
price-source report-currency #f))
price-source report-currency
(gnc-budget-get-period-end-date budget period)))
;; The HTML document
(doc (gnc:make-html-document)))