On Thu, 23 Feb 2006 22:46:13 +0100 Herbert Thoma <[EMAIL PROTECTED]> wrote:
> > Hmm, I usually do a get-quotes once a day, so I think I have > a reasonable price. > > Anyway, how do you get price data from the transaction? > Say you buy 10 shares X for 100 EUR and the report currency is USD. > There is no conversion rate for EUR to USD in this transaction, > so you have to look for one in the pricedb, don't you? Well that's the problem. There is no guarantee that there is an exchange rate in the pricedb. So, we can't get an exchange for shares with no pricedb, but the report should still provide information, isntead of just crashing. So I'm getting values for shares fromt he txns AND the pricedb and using whichever is most relevant. I guess that in a multi-commodity situation we have to fall back on the pricedb and gracefully handle it if there is none. A > > Herbert. > > > A > > > -- > Herbert Thoma > Group Manager Video > Multimedia Realtime Systems Department > Fraunhofer IIS > Am Wolfsmantel 33, 91058 Erlangen, Germany > Phone: +49-9131-776-323 > Fax: +49-9131-776-399 > email: [EMAIL PROTECTED] > www: http://www.iis.fhg.de/
pgpdK8bDLp2Om.pgp
Description: PGP signature
_______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel