add email conversation about price handling in register

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8226 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-04-12 22:53:25 +00:00
parent c8b7e17f7d
commit 41de729d20

View File

@ -4,6 +4,7 @@ Prices and the Price DB API is documented in design/engine.texinfo
Below, a few meta-notes about how prices and the GUI (should) interact:
----------
When a price is computed from the (value/amt) that a user entered
in a register, and this price is stored in the priceDB, then
both the register entry and the price must have links to each other
@ -19,5 +20,14 @@ contains an error in date/amt/value), then it is adviasable that
the correpsonding priceDB entry must be deleted as well (since
it is not safe to assume that the price is 'correct').
----------
When doing price math in the register, one must be careful, because
round-off errors can make 'obvious' math inaccurate. Note that if
we define price as (value/amt), then we will find that
value != price * amt due to roundoff handling. One must be careful
and consistent in handling this in the register, as otherwise
users will be driven crazy by inconsitent behaviour.
----------
(Linas Vepstas April 2003)