multi-currency transactions (was: problem with entering a stock transaction)

Christian Stimming stimming@tuhh.de
Sun, 5 Jan 2003 13:42:55 +0100


-----BEGIN PGP SIGNED MESSAGE-----

On Sonntag, 5. Januar 2003 07:17, Derek Atkins wrote:
> Ok, this is now fixed in CVS.  As I suspected, my multi-currency code
> was (improperly) acting on stock accounts.  I've fixed it so it wont
> do that anymore, and will only act on accounts where it should be
> acting.
>
> I also fixed another bug where entering a transaction in a new stock
> account would (incorrectly) pop up the exchange-rate dialog.

Wow. Thanks a lot! This would've been the next issue on my list. Now that this 
is fixed, the legacy 1.6-like currency exchange transactions should be 
editable exactly like they've been in 1.6.x. Phew. This really solved a lot 
of my concerns about the multi-currency handling. Again thanks.

As for the rest of the multi-currency handling: I would still propose to 
introduce a constraint on multi-currency transactions: They should be allowed 
to only contain at most two different currencies. With the exception that 
each split that goes into a stock-/currency-account may add another currency 
to that number. 

That way, the "edit exchange rate" dialog only has to deal with one exchange 
rate _per transaction_. (The exchange rate for any third/4th/... currency 
will only be editable through its own stock-account register window.)
The edit-exchange-rate dialog then knows the exact from-amount in currency A 
and the exakt to-amount in currency B, and the dialog can offer to either 
edit precisely this from-amount, or the to-amount, or the rate in between, 
just like the stock-account register does. 

To reconcile the transaction, the dialog can follow the rule that if there is 
only one split with that currency, changes to from-/to-amount directly apply 
to that split, but if there is more than one split, the splits' 
amounts/values are unchanged and the transaction is left imbalanced.

What do you think?

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQCVAwUBPhgoVGXAi+BfhivFAQHB0gP+ISIoZMegzZ65mgV3P0xQ5Amz1+AqhLZs
gqnHUR0KZZ1rM+g5tEL40l+sU+cb22X4Vu66+4mGfGVdRPEGcWo5z7p8V2XS9pdI
SRKUIZ3QempOapJr6SmPLPHoRivWy9t6p2ED2vasnEC+2S6qyeZAUEw+sg/Uw/9Z
WCpLPwg0+u8=
=2Yfd
-----END PGP SIGNATURE-----