> On Nov 14, 2025, at 11:51 AM, наб <[email protected]> wrote:
> 
> On Fri, Nov 14, 2025 at 08:31:39PM +0100, наб wrote:
>> 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.
> (now attached :v)
> 
>> Some follow-up questions, then, if you'd be so kind:
>> (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?
> That makes transactions to/from trading accounts Not Be Special
> (i.e. can't set per-unit price and amount),
> but it does seem to work around the split-brain.
> 
> Best,
> <preenter.png><entered.png>

Not a bug. GnuCash is not a hold-your-hand kind of program. It’s written with 
the expectation that you know what you’re doing. Multicurrency transactions are 
documented at https://gnucash.org/docs/v5/C/gnucash-guide/chapter_currency.html

A: Every transaction that isn’t single currency/commodity will get trading 
account splits and existing transactions that don’t have them will be reported 
as unbalance until you visit and recommit them so that GnuCash can add the 
splits.

B: I think you already figured that out: Visit each transaction and then leave 
it so that GnuCash recommits it. Actions>Check and Repair>All transactions 
might do it in bulk as might closing the file and reopening it (which runs most 
of what check and repair does).

C: You can, but you might grow to prefer having Trading Accounts turned on as 
the display of different currencies in the register is a bit clearer than when 
they’re turned off. You can also leave it turned off and do the trading account 
splits by hand.

On the precision thing: GnuCash has a smallest unit size for every currency and 
commodity (limited by our numeric backend to 1/1000000000). For currencies it’s 
set to the values specified in the ISO-4217 standard, 1/100 for all but a few 
that use 1/1. Amounts and values are rounded to that smallest unit for the 
currency or commodity in which they’re denominated, but prices are rounded only 
to the precision of the numeric system, roughly 10E-17. To ensure that the 
amounts and values don’t get rounded incorrectly we recommend that you always 
enter the amount and value and let GnuCash calculate the price.

Regards,
John Ralls.


_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to