Thanks Martin.
I was reading the manual and trying to sort out how to use exchange amounts 
in this case, but without success.
Can you exemplify how this transaction could be recorded in a single entry 
using explicit exchange rates/amounts?

On Tuesday, December 7, 2021 at 2:38:22 PM UTC+4 Martin Michlmayr wrote:

> * POliveira <[email protected]> [2021-12-07 01:05]:
> > 2021/05/31 * Currency Exchange
> > Assets:Paypal 15.00 EUR
> > Assets:Paypal -20.00 USD
>
> Typically, you should specify an exchange rate with @ or @@ to make
> the relationship between two currencies clear.
>
> However, if there are only two postings, ledger will do an implicit
> conversation for you, i.e. it does not require an explicit exchange
> rate (@) or exchange amount (@@).
>
> I strongly recommend to always use @ or @@ though since implicit
> conversations could lead to problems that are hard to track down
> later.
>
> > 2021/05/31 * Currency Exchange
> > Assets:Paypal 15.00 EUR
> > Assets:Paypal -20.00 USD
> > Assets:Bank1 10.00 GBP
> > Assets:Bank2 -15.00 EUR
>
> This involves 3 currencies. How should ledger know the relationship
> between these currencies?
>
> It may be obvious to a human what you want in this case, but you'll
> have to tell ledger explicitly. As mentioned above, *explicit* is
> good anyway as it helps you avoid mistakes.
>
> -- 
> Martin Michlmayr
> https://www.cyrius.com/
>

-- 

--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/259509a3-b835-4367-8d26-09039f2f1fa6n%40googlegroups.com.

Reply via email to