GNOME Bugzilla – Bug 340041
0 as an amount should be allowed in Exchange Editor
Last modified: 2018-06-29 21:02:49 UTC
To be able to record a Capital Gain, we need to be able to have a "0" as an amount. The following example illustrates this. Asset:US Bank (USD) Asset:JMD Bank (JMD) Have $50,000 worth in JMD Bank Open US Bank, and do the following withdrawal. Account Deposit Withdrawal US Bank $50,000 JMD Bank $50,000 (with rate 30) Income:Capital Gain $10,000 JMD Bank $10,000 (with rate 0) But the Exchange window do not let us use "To Amount" = 0, and any other amount will make a non-balanced account.
What's the currency of the Income:Capital Gain account? Why would the "To amount" be 0? If the Cap Gain account is (also) JMD, shouldn't the rate be 1.0?
To be honest, I don't quite remember my reasoning at that time. Ok, would this make sence? You live in USA, and all your accounts are in USD. You deposit some 40,000 USD worth of money into Jamaica some time ago. JMD has gone up (or USD gone down), so now it is worth $50,000. So, when you deposit $50,000 with the current excange rate, you will transfere more money. This money has to come from somewhere. That is (I think) the rate 0 exchange rate, to ensure that the $10,000 extra are listed. Or have I missed something. I wrote this when I did all the various tests for the user guide, and it was some time ago to be honest...
(In reply to comment #1) > What's the currency of the Income:Capital Gain account? > > Why would the "To amount" be 0? > > If the Cap Gain account is (also) JMD, shouldn't the rate be 1.0? > (In reply to comment #2) > To be honest, I don't quite remember my reasoning at that time. > > Ok, would this make sence? > > You live in USA, and all your accounts are in USD. > You deposit some 40,000 USD worth of money into Jamaica some time ago. > JMD has gone up (or USD gone down), so now it is worth $50,000. > > So, when you deposit $50,000 with the current excange rate, you will transfere > more money. This money has to come from somewhere. > That is (I think) the rate 0 exchange rate, to ensure that the $10,000 extra > are listed. > > Or have I missed something. I wrote this when I did all the various tests for > the user guide, and it was some time ago to be honest... > (In reply to comment #2) > To be honest, I don't quite remember my reasoning at that time. > > Ok, would this make sence? > > You live in USA, and all your accounts are in USD. > You deposit some 40,000 USD worth of money into Jamaica some time ago. > JMD has gone up (or USD gone down), so now it is worth $50,000. > > So, when you deposit $50,000 with the current excange rate, you will transfere > more money. This money has to come from somewhere. > That is (I think) the rate 0 exchange rate, to ensure that the $10,000 extra > are listed. > > Or have I missed something. I wrote this when I did all the various tests for > the user guide, and it was some time ago to be honest... > Hello, I am using gnucash 2.2.5 (This copy was built from r17141 on 2008-04-27) on Windows XP SP2. I would be looking for the same functionality please. The reason for this is I am having some issues with recording capital gains. Referring to: How do I keep track of capital gains with stocks? http://wiki.gnucash.org/wiki/FAQ It does provide an answer however I am unable to follow the solution if I have the share accounts setup as per: http://svn.gnucash.org/docs/guide/invest-setup1.html#invest-setup-stockaccounts2 When following the steps within: http://svn.gnucash.org/docs/guide/invest-sell1.html#invest-sellexampleloss it seems I need to record a 0 (zero), in order for the capital gain value to stick however I am unable to record a 0 (zero) or record the value for the capital loss/ gain. Instead I have an account 'Imbalance-AUD' pop up with the corresponding entry for the capital gain/ loss account(Income:Capital Gains). If there are other instructions on this I would really appreciate in seeing them. I read in the forums this is a known issue but references to that were for version 1.8 and stated that it was planned to be fixed in version 2. If that is not the case confirmation of that would be great to hear. It's just been a bit frustrating. btw it's a great bit of software, enjoying using it overall. Thanks! Alan
I also looked in: http://svn.gnucash.org/docs/help/help.html http://www.gnucash.org/docs/v2.0/C/gnucash-help/help.html and I didn't notice any thing that may help. cheers, Alan
In 2.2.5 it is actually possible to record a currency gain if you enter it in the register of the income account rather than the register of the asset account. You have to tell the exchange rate dialog TWICE that the rate is zero, but it works. Leaving this bug open because entering currency gains should be much easier than this.
Fix committed as r17507. Requesting backport for 2.2.x, but it may in the end be delayed until a later version (backporting register patches can be risky.) This fix allows the 0 exchange rate to be accepted the first time, but you still must enter the transaction from the income account. At some point in the future it would be nice to have a guided procedure for entering these things.
*** Bug 436342 has been marked as a duplicate of this bug. ***
2.2-branch, r17732
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=340041. Please update any external references or bookmarks.