DB design document
Dave Peticolas
dave@krondo.com
Thu, 14 Dec 2000 15:06:23 -0800
David Merrill writes:
>
> Okay. The _scu values are then the default values for damount for that
> account. A split recorded against the account would have damount set
> to the _scu value.
No, the scu values are the corresponding denominator values.
> Although default, it could be modified later. Does it originally come from th
> e
> commodity's definition, because each commodity has some default value
> associated with it? Certainly for currency commodities this would be
> the case.
Yes.
> A related issue... Suppose you have an account with a _scu of 100, and
> the user enters a transaction with an amount that requires it to be
> bumped up to 1000. (They enter 1.001). We would then bump the damount
> to 1000 and record the value as 1001? Other records would be
> unaffected?
The transaction would be rounded -- the scu is enforced by the engine.
The user would have to change the account's scu.
dave