After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340041 - 0 as an amount should be allowed in Exchange Editor
0 as an amount should be allowed in Exchange Editor
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Register
git-master
Other Linux
: Normal normal
: ---
Assigned To: Charles Day
Chris Shoemaker
: 436342 (view as bug list)
Depends on:
Blocks: backport
 
 
Reported: 2006-04-28 16:38 UTC by Bengt Thuree
Modified: 2018-06-29 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bengt Thuree 2006-04-28 16:38:36 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.
Comment 1 Josh Sled 2007-04-21 16:02:18 UTC
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?
Comment 2 Bengt Thuree 2007-04-22 00:30:14 UTC
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...

Comment 3 alant 2008-05-18 13:03:21 UTC
(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
Comment 4 alant 2008-05-18 13:06:18 UTC
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
Comment 5 Charles Day 2008-07-13 21:11:05 UTC
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.
Comment 6 Charles Day 2008-09-14 22:30:58 UTC
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.
Comment 7 Christian Stimming 2008-11-27 10:40:34 UTC
*** Bug 436342 has been marked as a duplicate of this bug. ***
Comment 8 Christian Stimming 2008-11-27 11:25:29 UTC
2.2-branch, r17732
Comment 9 John Ralls 2018-06-29 21:02:49 UTC
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.