Hi Chary,

Chary Chary <[email protected]> writes:

> But I can't find any report, which would show me why assets have increased 
> 2 times. Option --unrealized  does not have any effect in this case
>
> I would expect some report, which would say something like 
>
> -1000 EUR Unrealized gain
> -1000 EUR    Unrealized gain due to EUR/USD changes
>
> So, how can it be done?

I think John answered without seeing that you had already tried
--unrealized, so let me try to help:

There is something sort of subtle going on with --unrealized.  If you
just run the balance report with --unrealized, but without specifying
any account like you did here:

> C:\_code\ledger>ledger -f ledger.txt balance -X EUR --now 2018-12-31
>              EUR2000  Assets:Checking
>             EUR-2000  Equity:Opening Balances
> --------------------
>                    0

then you won't see any unrealized gains.  But if you specifically ask
for the balance of the Checking account in EUR, you'll see the
unrealized gains:

ledger -f ledger.txt bal Checking  -X EUR --now 2018-12-31 --unrealized
             EUR2000  Assets:Checking
            EUR-1000  Equity:Unrealized Gains
--------------------
             EUR1000

I don't know exactly why this is, or even whether it's expected
(vs. being a bug), but maybe it makes some sense: when you're getting
the balance of all accounts together, including Equity, there are no
"unrealized" gains (the gains are "realized" in Equity, or at least
reflected in the balance of the Equity account, as you noticed).  But
when you are just getting the balance of Checking, and you're getting it
in a currency other than the amount actually inside that account, then
there are unrealized gains in that account, which ledger notices.

Hope that helps!

-- 
Best,
Richard

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to