From 003d7209a98ae6d7dde712677d65ace42c95447e Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Thu, 17 Dec 2009 08:04:48 +0000 Subject: [PATCH] Watch out for a missing pricing transaction when looking for price data. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18524 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/report/standard-reports/advanced-portfolio.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report/standard-reports/advanced-portfolio.scm b/src/report/standard-reports/advanced-portfolio.scm index f02c3b0f01..cb50f84404 100644 --- a/src/report/standard-reports/advanced-portfolio.scm +++ b/src/report/standard-reports/advanced-portfolio.scm @@ -614,7 +614,7 @@ ;; now we determine which price data to use, the pricelist or the txn ;; and if we have a choice, use whichever is newest. (set! use-txn (if (not price) #t - (if prefer-pricelist #f + (if (or prefer-pricelist (not pricing-txn)) #f (if (not (gnc:timepair-le txn-date (gnc-price-get-time price))) #t #f)))) (gnc:debug "use txn is " use-txn)