Rounding in the price db.

John Ralls jralls at ceridwen.us
Mon Aug 17 05:36:26 EDT 2015


> On Aug 12, 2015, at 2:13 PM, John Ralls <jralls at ceridwen.us> wrote:
> It might help to consider what the price db is used for: Aside from providing a default rate in the transfer dialog, it’s used for pricing assets in the Accounts page and the summary bar — only the latest entry is used there. It’s used for calculating values in reports, where the reports can use a weighted average, nearest in time, most recent, or average cost. I need to look to see if the average cost actually looks at the buy transactions or if it does something similar to nearest in time and at weighted average to see what it’s averaging and how it’s weighting the averaged values. Depending on what those two are doing might drive whether multiple F::Q entries per day make sense, assuming that the algorithms make sense.

OK, I’ve looked. They don’t use the price db, which is what one would expect. Weighted-average is weighted by the transaction size, which will be distorted by stock splits but is otherwise OK.

Regards,
John Ralls




More information about the gnucash-devel mailing list