[GNC] Transaction between stock account and non-default currency account looks OK from perspective of former, completely blank in latter, doesn't even ask for a conversion rate, doesn't allow setting one
наб
nabijaczleweli at nabijaczleweli.xyz
Fri Nov 14 14:31:39 EST 2025
On Mon, Nov 10, 2025 at 05:52:33PM -0800, John Ralls wrote:
> > On Nov 10, 2025, at 11:54, наб <nabijaczleweli at nabijaczleweli.xyz> wrote:
> > Given the following scenario:
> > 1. unit of account PLN, root account in PLN
> > 2. stock account with let's-say-LTC
> > 3. bank/asset account in a non-PLN currency (let's say EUR)
> >
> > Entering a transaction into the LTC account that looks like
> > Sell: LTC -2 shares @ 360 zł = 720 zł total sell
> > Buy: EUR 720 zł total buy
> > looks correct in the LTC account view,
> > but in the EUR account view it's all-0
> > (all splits are there, in a 3-split variant there's 3 splits.
> > but they're all 0).
> >
> > The balance of the EUR account is unchanged by this transaction.
> >
> > I am not prompted for a conversion rate.
> > Right-clicking -> Edit Conversion Rate is refused,
> > and gnucash tells me I can't be doing that.
> >
> > As I hope is natural, a correct result would be
> > (a) to be prompted for the conversion rate (let's say 4zł=1€), and
> > (b) from the perspective of the EUR account, for the tx to look like
> > Sell: LTC -180 €
> > Buy: EUR +180 €
> > (c) the balance of the EUR account increases by 180€ instead of by 0.
> >
> > I reproed this on Debian gnucash 5.6-1~bpo12+1 and 5.13-1,
> > and on Win32 5.11.
> >
> > I'm attaching screenshots as well as a reproducer reduced from my journal.
> >
> > Reporting here since I'm seemingly forbidden from reporting on bugzilla.
>
> You have to request an account, see https://wiki.gnucash.org/wiki/Bugzilla#New_Accounts .
> But you have no bug to report, you just need to learn to use GnuCash correctly.
>
> > Please keep me in CC, as I'm not subscribed.
>
> Turn on trading accounts and make the transaction look like the attached screenshot.
Thanks for the pointers, but what you're saying sounds to me like:
(a) gnucash should allow this without trading accounts but doesn't, or
(b) gnucash should have informed me that to support this transaction
I need to turn on trading accounts but it didn't,
and both (a) and (b) sound like bugs to me. More likely (b).
I have, however, followed this, and entered the transaction as in
preenter.png, which, after pressing Enter (and fixing up a 0.01zł imbalance),
resulted in entered.png. Beside the precision loss, this looks correct.
I accidentally clicked on another transaction in this account
(between LTC and PLN, so no Trading account needed)
and gnucash claimed it was unbalanced (it wasn't);
after letting it balance the transaction automatically,
it added Trading:... splits to it as well.
Some follow-up questions, then, if you'd be so kind:
(a) when I have turned trading accounts on,
will every transaction that isn't PLN/PLN be poisoned by them?
(b) if that is the case, how do I trigger this to autobalance every
historical transaction?
(c) can I turn trading accounts off now and wait until I do another
nonPLN/nonPLN trade to turn it on again to enter it,
or will this break gnucash?
Thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20251114/5800dc66/attachment-0001.sig>
More information about the gnucash-user
mailing list